getPlaceDetails
FunctiongetPlaceDetails(requestOptions: IGetPlaceOptions): 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.
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
Parameter | Type |
---|---|
request | IGetPlaceOptions |
Returns
Promise<IGetPlaceResponse>