# GoogleMaps Framework Reference

# GMSAddress

    @interface GMSAddress : NSObject <NSCopying, NSSecureCoding>

A result from a reverse geocode request, containing a human-readable address. This class is
immutable and should not be instantiated directly unless under testing circumstances. Obtain an
instance via `https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSGeocoder.html`.

Some of the fields may be nil, indicating they are not present.
- `


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


  ` Location, or kLocationCoordinate2DInvalid if unknown.

  #### Declaration

  Swift

      var coordinate: CLLocationCoordinate2D { get }

  Objective-C

      @property (nonatomic, readonly) CLLocationCoordinate2D coordinate;

- `


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


  ` Street number and name.

  #### Declaration

  Swift

      var thoroughfare: String? { get }

  Objective-C

      @property (nonatomic, copy, readonly, nullable) NSString *thoroughfare;

- `


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


  ` Locality or city.

  #### Declaration

  Swift

      var locality: String? { get }

  Objective-C

      @property (nonatomic, copy, readonly, nullable) NSString *locality;

- `


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


  ` Subdivision of locality, district or park.

  #### Declaration

  Swift

      var subLocality: String? { get }

  Objective-C

      @property (nonatomic, copy, readonly, nullable) NSString *subLocality;

- `


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


  ` Region/State/Administrative area.

  #### Declaration

  Swift

      var administrativeArea: String? { get }

  Objective-C

      @property (nonatomic, copy, readonly, nullable) NSString *administrativeArea;

- `


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


  ` Postal/Zip code.

  #### Declaration

  Swift

      var postalCode: String? { get }

  Objective-C

      @property (nonatomic, copy, readonly, nullable) NSString *postalCode;

- `


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


  ` The country name.

  #### Declaration

  Swift

      var country: String? { get }

  Objective-C

      @property (nonatomic, copy, readonly, nullable) NSString *country;

- `


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


  ` An array of `NSString` containing formatted lines of the address. May be nil.

  #### Declaration

  Swift

      var lines: [String]? { get }

  Objective-C

      @property (nonatomic, copy, readonly, nullable) NSArray<NSString *> *lines;

- `


  ### [-addressLine1](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSAddress#/c:objc(cs)GMSAddress(im)addressLine1)


  ` Deprecated

  This method is obsolete and will be removed in a future release. Use the lines property instead.
  Returns the first line of the address.

  #### Declaration

  Swift

      func addressLine1() -> String?

  Objective-C

      - (nullable NSString *)addressLine1;

- `


  ### [-addressLine2](https://developers.google.com/maps/documentation/ios-sdk/reference/objc/Classes/GMSAddress#/c:objc(cs)GMSAddress(im)addressLine2)


  ` Deprecated

  This method is obsolete and will be removed in a future release. Use the lines property instead.
  Returns the second line of the address.

  #### Declaration

  Swift

      func addressLine2() -> String?

  Objective-C

      - (nullable NSString *)addressLine2;