New pricing changes will go into effect starting July 16, 2018. For more information, check out the Guide for Existing Users.

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...