TomTom API key for authentication.
Required for all SDK features. Obtain an API key from the my.tomtom.com.
Base URL of every TomTom request: service calls, and the style, tile, sprite and glyph URLs the map fetches.
Change it only to route those requests through a proxy of your own. Leaving apiKey unset too
switches the SDK to proxy-credentials mode, where no key leaves the browser and requests carry the proxy's
session cookie.
OptionaldisplayCustom display units for time and distance.
Applied to formatDistance and formatDuration utilities, which are used throughout the SDK for displaying map information. If not provided, default unit labels are used.
OptionalgeopoliticalGeopolitical view of the map and of service results: whose perspective disputed territories are shown from.
Unset, each TomTom API picks the default view for the country the request comes from.
OptionallanguageLanguage code for SDK services and map content.
Accepts IETF language codes (case-insensitive). Affects search results, routing instructions, and map labels.
OptionalretryConfiguration for automatic retry on rate-limited (429) responses.
When set, the SDK automatically retries requests that receive a 429 status code using exponential backoff. All fields have sensible defaults.
Global configuration for the TomTom Maps SDK.
Contains essential parameters like API keys, language settings, and display preferences that apply across all SDK services and map functionality.
Remarks
This configuration can be set globally using TomTomConfig and will be merged with service-specific configurations, with service configs taking precedence.
Example