AI-generated Key Takeaways
-
GMSPlaceFeaturerepresents a place feature with a Place ID on the map. -
It includes properties for
featureType(e.g., building, point of interest) andplaceIDfor unique identification. -
Although there's a method
initWithFeatureType:placeID:for testing, in real-world scenarios, the SDK is responsible for creatingGMSPlaceFeatureinstances.
GMSPlaceFeature
@interface GMSPlaceFeature : NSObject <GMSFeature>An interface representing a place feature (a feature with a Place ID).
-
Declaration
Swift
var featureType: FeatureType { get }Objective-C
@property(nonatomic, readonly) GMSFeatureType featureType -
Declaration
Swift
var placeID: String { get }Objective-C
@property(nonatomic, readonly) NSString *placeID -
Create a feature layer instance for testing.
This method should be used for your unit tests only. In production,
GMSPlaceFeatureinstances should only be created by the SDK.Declaration
Swift
convenience init(featureType: FeatureType, placeID: String)Objective-C
- (nonnull instancetype)initWithFeatureType:(nonnull GMSFeatureType)featureType placeID:(nonnull NSString *)placeID; -
Unavailable
Declaration
Objective-C
- (instancetype)init NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE;