Maps SDK for Web
tt.services.poiCategories
The POI Categories service provides a full list of POI (Points of Interest) categories and subcategories together with their translations and synonyms. Search API - POI Categories.
Parameters need to be be passed to the constructor.
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.poiCategories([options], [additionalOptions])
Example
function callbackFn(result) {
console.log(result);
};
tt.services.poiCategories({
key: <Your API key>,
language: 'pl-PL'
}).then(callbackFn);
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.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.language
String default:null |
Language code that decides in which language the results should be returned. The value should correspond to one of the supported IETF language codes. The list is available here. The code is case insensitive. |
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.
|