getPlaceDetails

getPlaceDetails

Function
getPlaceDetails(requestOptionsIGetPlaceOptions): Promise<IGetPlaceResponse>

Returns a single place, including additional details, such as:

  • contact details
  • address
  • price information
  • user rating
  • opening hours

This endpoint can be used to fetch additional details for a specific place, returned from a places search request.

Note that some fields, such as opening hours, are not available for every place. Where a field is not available it will be omitted from the response and you will not be charged for this data.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
import { getPlaceDetails } from "@esri/arcgis-rest-places";
import { ApiKeyManager } from "@esri/arcgis-rest-request";

const place = getPlaceDetails({
 placeId: "e78051acc722c55ab11ba930d8dd7772",
 authentication: ApiKeyManager.fromKey("YOUR_API_KEY")
});

console.log(place);
Parameters
ParameterType
requestOptions
IGetPlaceOptions
Returns 
Promise<IGetPlaceResponse>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.