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. The method go performs the actual call.

Constructor

tt.services.poiCategories([options])

Example
function callbackFn(result) {
  console.log(result);
};

tt.services.poiCategories({
  key: <Your API key>,
  language: 'pl-PL'
})
.go()
.then(callbackFn);

The SDK provides a Promise polyfill for browsers (IE<9) without native ECMAScript 6 support.

Parameters
Name Description
options
Object
default:None
Options to be passed to the call.
options.key
String
default:None

A valid API Key for the requested service.


A valid API 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.

Methods

go( ): Promise

Executes a predefined asynchronous task using the current configuration.

Returns