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

GMSPlacePicker Class Reference

GMSPlacePicker Class Reference

Overview

The Place Picker is a dialog that allows the user to pick a GMSPlace using an interactive map and other tools.

Users can select the place they're at or nearby.

Note:
This class is deprecated, it is recommended that you use GMSPlacePickerViewController instead.

Public Member Functions

(instancetype) - initWithConfig:
 Initializes the place picker with a given configuration.
(void) - pickPlaceWithCallback:
 Prompt the user to pick a place.

Properties

GMSPlacePickerConfigconfig
 The configuration of the place picker, as passed in at initialization.

Related Functions

(Note that these are not member functions.)

enum  GMSPlacePickerErrorCode
 Error codes for kGMSPlacePickerErrorDomain. More...
NSString *const kGMSPlacePickerErrorDomain
 Error domain used for Place Picker errors.

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.

Note:
This is deprecated. Use GMSPlacePickerViewController instead
- (void) pickPlaceWithCallback: (GMSPlaceResultCallback)  callback

Prompt the user to pick a place.

The place picker is a full-screen window that appears on [UIScreen mainScreen]. The place picker takes over the screen until the user cancels the operation or picks a place. The supplied callback will be invoked with the chosen place, or nil if no place was chosen.

This method should be called on the main thread. The callback will also be invoked on the main thread.

It is not possible to have multiple place picking operations active at the same time. If this is attempted, the callback will be invoked with an error.

Note:
This is deprecated. Use GMSPlacePickerViewController instead

Friends And Related Function Documentation

- (enum) GMSPlacePickerErrorCode [related]

Error codes for kGMSPlacePickerErrorDomain.

- (NSString* const) kGMSPlacePickerErrorDomain [related]

Error domain used for Place Picker errors.


Property Documentation

- (GMSPlacePickerConfig*) config [read, copy]

The configuration of the place picker, as passed in at initialization.

Note:
This is deprecated. Use GMSPlacePickerViewController instead

Send feedback about...

location_on
Google Places API for iOS