Maps SDK for Web
tt.services.poiDetails
Makes a poi details request using the TomTom POI Details API.
This service provides additional information about POIs including:
- rating
- price range
- photo IDs
- user reviews
This service has specific terms and conditions of usage. For more information about this service please refer to the POI Details API documentation.
Response
The response is extended with getTrackingId()
method, which returns the Tracking-ID
associated with the request.
Please refer to Difference between API responses and this library's responses section.
Constructor
tt.services.poiDetails([options], [additionalOptions])
Parameters
Name | Description |
---|---|
options
Object default:None |
Options to be passed to the call. |
additionalOptions
Object default:None |
Additional options to be passed to the service. |
additionalOptions.abortSignal
Object default:None |
Signal created with abortController. Use AbortController to cancel requests in progress. Example
|
options.id
String default:None |
POI details id which is previously retrieved from a Search request. |
options.key
String default:None |
A valid API Key for the requested service. Key is required to make use of the given service. It can be issued in the Developer Portal. |
options.trackingId
String default:uuid |
Sets value of "Tracking-ID" header. Specifies an identifier for the request. If not set by the user, UUID is generated for each call.
|