You're all set!

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

Activate the Google Places API 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 Places API for iOS
  3. Create appropriate keys
Continue

GMSPlacePickerViewController Class Reference

GMSPlacePickerViewController Class Reference

Overview

GMSPlacePickerViewController provides an interface that displays the Place Picker.

Place selections made by the user are returned to the app via the GMSPlacePickerViewControllerDelegate protocol.

To use GMSPlacePickerViewController, set its delegate to an object in your app that conforms to the GMSPlacePickerViewControllerDelegate protocol and present the controller (for example using presentViewController). The GMSPlacePickerViewControllerDelegate delegate methods can be used to determine when the user has selected a place, cancelled selection, or when an error has occurred.

Public Member Functions

(instancetype) - initWithConfig:
 Initializes the place picker with a given configuration.

Properties

IBOutlet id
< GMSPlacePickerViewControllerDelegate
delegate
 Delegate to be notified when a place is selected or picking is cancelled.

Member Function Documentation

- (instancetype) initWithConfig: (GMSPlacePickerConfig *)  config

Initializes the place picker with a given configuration.

This does not start the process of picking a place.


Property Documentation

- (IBOutlet id<GMSPlacePickerViewControllerDelegate>) delegate [read, write, assign]

Delegate to be notified when a place is selected or picking is cancelled.

Send feedback about...

location_on
Google Places API for iOS