TomTom API key for authentication.
Required for all SDK features. Obtain an API key from the TomTom Developer Portal.
API version number for service endpoints.
Each service may have its own default version. Consult the specific service documentation for available versions.
Base URL for all TomTom API services.
Individual services can override this with their own base URLs. Typically only changed for testing or enterprise deployments.
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.
OptionallanguageLanguage code for SDK services and map content.
Accepts IETF language codes (case-insensitive). Affects search results, routing instructions, and map labels.
OptionaltrackingRequest identifier for tracing and support.
Must match the pattern: ^[a-zA-Z0-9-]{1,100}$
Recommended format is UUID (e.g., 9ac68072-c7a4-11e8-a8d5-f2801f1b9fd1).
When specified, it's included in the Tracking-ID response header.
This is solely for support purposes and does not involve user tracking.
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