GoogleMaps Framework Reference

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, GMSPlaceFeature instances 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 
     ; 
     
    
Create a Mobile Website
View Site in Mobile | Classic
Share by: