# GooglePlaces Framework Reference

# GMSAddressComponent

    @interface GMSAddressComponent : NSObject

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


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


  ` Deprecated

  type property is deprecated in favor of types
  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.

  #### Declaration

  Swift

      var type: String { get }

  Objective-C

      @property (nonatomic, copy, readonly) __GMS_AVAILABLE_BUT_DEPRECATED_MSG NSString *type;

- `


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


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

  #### Declaration

  Swift

      var types: [String] { get }

  Objective-C

      @property (nonatomic, strong, readonly) NSArray<NSString *> *_Nonnull types;

- `


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


  ` Name of the address component, e.g. "Sydney"

  #### Declaration

  Swift

      var name: String { get }

  Objective-C

      @property (nonatomic, copy, readonly) NSString *_Nonnull name;

- `


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


  ` Short name of the address component, e.g. "AU"

  #### Declaration

  Swift

      var shortName: String? { get }

  Objective-C

      @property (nonatomic, copy, readonly) NSString *_Nullable shortName;