getPlace(id, callback, options)
Obtains a place using its identifier.
Declaration
getPlace(
id: string,
callback: (error: Error | null, result: Place | null) => void,
options?: PlaceLookupOptions,
): Promise<Place>;Parameters
- id:
The Place ID that refers to the Place object to fetch.
- callback:
A callback function that is invoked with
erroranddataparameters. - options:
Options that can overwrite the same options set on the property or that you supplied to the Placelookup constructor. See Placelookupoptions.
Return Value
A promise that resolves with a Place on success.
Discussion
For information about Places, see Identifying unique locations with Place IDs.