Maps SDK for Web

tt

This object aggregates all the services available in TomTom.

Please refer to the following documentation to check what properties are on the tt object, and how you can make calls to TomTom services.

Properties

services: Services

An object, which contains all supported services.

Methods

sdkInfo( ): Object

Returns SDK details (e.g., version).

Returns

setProductInfo(productId, productVersion)

This method sets the content of the TomTom-User-Agent header. We are collecting anonymous data for statistics of the usage of our services in order to increase the quality of our products.

Example
tt.setProductInfo('your-product-id', 'your-product-version');
Parameters
Name Description
productId
String
default:None
Identifier (e.g., a name) of your application e.g., MyApplication
productVersion
String
default:None
Version of your application e.g., 1.0.2