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

Place Report

An app can report that the device is currently located at a particular place. By reporting places that users have confirmed, you can help Google build a local model of the world. You should report that a device is at a place only if you're confident that the user is at the place, at the time when you report it.

To indicate that a device is located at a specific place, call GMSPlacesClient reportDeviceAtPlaceWithID:, passing the placeID of the place you are reporting. You can retrieve this place ID from the GMSPlace object. For more information about place IDs, see the place ID overview.

Reporting the location of a device is similar to a checkin. It's not possible to retrieve the report later, and the report is not linked to the user's account.

The following sample reports that the device is at Darling Island Wharf, in Pyrmont, Australia.

Swift

// Place ID for Darling Island Wharf Pyrmont
let placeID = "ChIJO1H1TzeuEmsR5bJONIMc4jk"

placesClient.reportDeviceAtPlace(withID: placeID)
  

Objective-C

// Place ID for Darling Island Wharf Pyrmont
NSString *placeID = @"ChIJO1H1TzeuEmsR5bJONIMc4jk";

[_placesClient reportDeviceAtPlaceWithID:placeID];
  

Send feedback about...

location_on
Google Places API for iOS