GMSAddress Class Reference

GMSAddress Class Reference

Overview

A result from a reverse geocode request, containing a human-readable address.

This class is immutable and should be obtained via GMSGeocoder.

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

Public Member Functions

(NSString *) - addressLine1
 Returns the first line of the address.
(NSString *) - addressLine2
 Returns the second line of the address.

Properties

CLLocationCoordinate2D coordinate
 Location, or kLocationCoordinate2DInvalid if unknown.
NSString * thoroughfare
 Street number and name.
NSString * locality
 Locality or city.
NSString * subLocality
 Subdivision of locality, district or park.
NSString * administrativeArea
 Region/State/Administrative area.
NSString * postalCode
 Postal/Zip code.
NSString * country
 The country name.
NSArray * lines
 An array of NSString containing formatted lines of the address.

Member Function Documentation

- (NSString *) addressLine1

Returns the first line of the address.

This method is obsolete and deprecated and will be removed in a future release. Use the lines property instead.

- (NSString *) addressLine2

Returns the second line of the address.

This method is obsolete and deprecated and will be removed in a future release. Use the lines property instead.


Property Documentation

- (CLLocationCoordinate2D) coordinate [read, assign]

Location, or kLocationCoordinate2DInvalid if unknown.

- (NSString*) thoroughfare [read, copy]

Street number and name.

- (NSString*) locality [read, copy]

Locality or city.

- (NSString*) subLocality [read, copy]

Subdivision of locality, district or park.

- (NSString*) administrativeArea [read, copy]

Region/State/Administrative area.

- (NSString*) postalCode [read, copy]

Postal/Zip code.

- (NSString*) country [read, copy]

The country name.

- (NSArray*) lines [read, copy]

An array of NSString containing formatted lines of the address.

May be nil.

Send feedback about...

Google Maps SDK for iOS
Google Maps SDK for iOS
Need help? Visit our support page.