You're all set!

To start developing, please head over to our developer documentation.

Activate the Google Maps SDK for iOS

To get you started we'll guide you through the Google Developers Console to do a few things first:

  1. Create or choose a project
  2. Activate the Google Maps SDK for iOS
  3. Create appropriate keys
Continue

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 *_Nullable) - addressLine1
 Returns the first line of the address.
(NSString *_Nullable) - addressLine2
 Returns the second line of the address.

Properties

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

Member Function Documentation

- (NSString *_Nullable) 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 *_Nullable) 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* _Nullable) thoroughfare [read, copy]

Street number and name.

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

Locality or city.

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

Subdivision of locality, district or park.

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

Region/State/Administrative area.

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

Postal/Zip code.

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

The country name.

- (NSArray<NSString *>* _Nullable) 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.