GooglePlaces Framework Reference

GMSPlaceArea

@interface GMSPlaceArea : NSObject

Area information and the area’s relationship with the target location.

Areas include precise sublocality, neighborhoods, and large compounds that are useful for describing a location.

  • The area’s resource name.

    Declaration

    Swift

    var resourceName: String? { get }

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *resourceName;
  • The area’s place ID.

    Declaration

    Swift

    var placeID: String? { get }

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *placeID;
  • The area’s display name.

    Declaration

    Swift

    var displayName: String? { get }

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *displayName;
  • The area’s display name language code.

    Declaration

    Swift

    var displayNameLanguageCode: String? { get }

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *displayNameLanguageCode;
  • Defines the spatial relationship between the target location and the area. Defaults to GMSPlaceAreaContainmentUnspecified if the relationship is not defined.

    Declaration

    Swift

    var containment: GMSPlaceAreaContainment { get }

    Objective-C

    @property (nonatomic, readonly) GMSPlaceAreaContainment containment;
  • Unavailable

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;