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.

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.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close