GMSAddressComponent Class Reference

GMSAddressComponent Class Reference

Overview

Represents a component of an address, e.g., street number, postcode, city, etc.

Properties

NSString * type
 Type of the address component.
NSArray< NSString * > * types
 Types associated with the address component.
NSString * name
 Name of the address component, e.g.
NSString *_Nullable shortName
 Short name of the address component, e.g.

Property Documentation

- (NSString*) type [read, copy]

Type of the address component.

For a list of supported types, see https://developers.google.com/places/ios-sdk/supported_types#table2. This string will be one of the constants defined in GMSPlaceTypes.h.

Note:
This is deprecated. type property is deprecated in favor of types
- (NSArray<NSString *>*) types [read, assign]

Types associated with the address component.

For a list of supported types, see https://developers.google.com/places/ios-sdk/supported_types#table2. This array will contain one or more of the constants strings defined in GMSPlaceTypes.h.

- (NSString*) name [read, copy]

Name of the address component, e.g.

"Sydney"

- (NSString* _Nullable) shortName [read, copy]

Short name of the address component, e.g.

"AU"