Google Maps SDK for iOS

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.

- (NSString *) addressLine2

Returns the second line of the address.


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.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.