GoogleNavigation Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSDatasetFeature
@interface GMSDatasetFeature : NSObject <GMSFeature>
An interface representing a feature from a dataset.
The featureType of a DatasetFeature will always be GMSFeatureTypeDataset
.
-
Dataset id of the dataset that this feature belongs to.
Declaration
Swift
var datasetID: String { get }
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull datasetID;
-
Key-value mapping of the attributes associated with the feature in the dataset.
Declaration
Swift
var datasetAttributes: [String : String] { get }
Objective-C
@property (nonatomic, readonly) NSDictionary<NSString *, NSString *> *_Nonnull datasetAttributes;
-
Create a dataset feature instance for testing uses.
This method should be used for testing purposes only; GMSDatasetFeature
instances should only
be created by the SDK in production code.
Declaration
Swift
init(datasetID: String, datasetAttributes: [String : String] = [:])
Objective-C
- (nonnull instancetype)initWithDatasetID:(nonnull NSString *)datasetID
datasetAttributes:
(nonnull NSDictionary<NSString *, NSString *> *)
datasetAttributes;
-
Declaration
Objective-C
- (instancetype)init NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003e\u003ccode\u003eGMSDatasetFeature\u003c/code\u003e represents a feature from a dataset and always has a feature type of \u003ccode\u003eGMSFeatureTypeDataset\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEach \u003ccode\u003eGMSDatasetFeature\u003c/code\u003e is associated with a specific dataset, identified by its \u003ccode\u003edatasetID\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eFeatures contain key-value pairs in \u003ccode\u003edatasetAttributes\u003c/code\u003e to store their properties.\u003c/p\u003e\n"],["\u003cp\u003eAlthough an initializer is provided for testing, \u003ccode\u003eGMSDatasetFeature\u003c/code\u003e instances should ideally be created by the SDK in production environments.\u003c/p\u003e\n"]]],["`GMSDatasetFeature` represents a feature from a dataset, always of `GMSFeatureTypeDataset`. It has a `datasetID`, indicating the dataset it belongs to, and `datasetAttributes`, a key-value map of associated attributes. Instances are created by the SDK in production. For testing, `initWithDatasetID:datasetAttributes:` creates a feature. The standard `init` method is unavailable, ensuring SDK-managed creation. All properties are read-only.\n"],null,["# GoogleNavigation Framework Reference\n\nGMSDatasetFeature\n=================\n\n\n @interface GMSDatasetFeature : NSObject \u003c../Protocols/GMSFeature.html\u003e\n\nAn interface representing a feature from a dataset.\n\nThe featureType of a DatasetFeature will always be [GMSFeatureTypeDataset](../Constants/GMSFeatureTypeDataset.html).\n- `\n ``\n ``\n `\n\n ### [datasetID](#/c:objc(cs)GMSDatasetFeature(py)datasetID)\n\n `\n ` \n Dataset id of the dataset that this feature belongs to. \n\n #### Declaration\n\n Swift \n\n var datasetID: String { get }\n\n Objective-C \n\n @property (nonatomic, readonly) NSString *_Nonnull datasetID;\n\n- `\n ``\n ``\n `\n\n ### [datasetAttributes](#/c:objc(cs)GMSDatasetFeature(py)datasetAttributes)\n\n `\n ` \n Key-value mapping of the attributes associated with the feature in the dataset. \n\n #### Declaration\n\n Swift \n\n var datasetAttributes: [String : String] { get }\n\n Objective-C \n\n @property (nonatomic, readonly) NSDictionary\u003cNSString *, NSString *\u003e *_Nonnull datasetAttributes;\n\n- `\n ``\n ``\n `\n\n ### [-initWithDatasetID:datasetAttributes:](#/c:objc(cs)GMSDatasetFeature(im)initWithDatasetID:datasetAttributes:)\n\n `\n ` \n Create a dataset feature instance for testing uses.\n\n This method should be used for testing purposes only; `GMSDatasetFeature` instances should only\n be created by the SDK in production code. \n\n #### Declaration\n\n Swift \n\n init(datasetID: String, datasetAttributes: [String : String] = [:])\n\n Objective-C \n\n - (nonnull instancetype)initWithDatasetID:(nonnull NSString *)datasetID\n datasetAttributes:\n (nonnull NSDictionary\u003cNSString *, NSString *\u003e *)\n ../Classes/GMSDatasetFeature.html#/c:objc(cs)GMSDatasetFeature(py)datasetAttributes;\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)GMSDatasetFeature(im)init)\n\n `\n ` \n Unavailable \n\n #### Declaration\n\n Objective-C \n\n - (instancetype)init NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE;"]]