# GoogleMaps Framework Reference

# GMSDatasetFeature


    @interface GMSDatasetFeature : NSObject <https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Protocols/GMSFeature.html>

An interface representing a feature from a dataset.

The featureType of a DatasetFeature will always be `https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Constants/GMSFeatureTypeDataset.html`.
- `


  ### [datasetID](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSDatasetFeature#/c:objc(cs)GMSDatasetFeature(py)datasetID)


  ` Dataset id of the dataset that this feature belongs to.

  #### Declaration

  Swift

      var datasetID: String { get }

  Objective-C

      @property (nonatomic, readonly) NSString *_Nonnull datasetID;

- `


  ### [datasetAttributes](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSDatasetFeature#/c:objc(cs)GMSDatasetFeature(py)datasetAttributes)


  ` 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;

- `


  ### [-initWithDatasetID:datasetAttributes:](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSDatasetFeature#/c:objc(cs)GMSDatasetFeature(im)initWithDatasetID: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 *> *)
                                      https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSDatasetFeature.html#/c:objc(cs)GMSDatasetFeature(py)datasetAttributes;

- `


  ### [-init](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSDatasetFeature#/c:objc(cs)GMSDatasetFeature(im)init)


  ` Unavailable

  #### Declaration

  Objective-C

      - (instancetype)init NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE;