createHybridMode

fun createHybridMode(context: Context, apiKey: String, dataStore: HybridNavigationDataStore, locationProvider: LocationProvider, locale: Locale): Traffic

Deprecated

This will be removed from future releases after 2027-02-05.

Creates a Traffic implementation for the default TomTom traffic provider with the default configuration. This method should be used when using the "hybrid" configuration (online and onboard map).

Parameters

context

Application context.

apiKey

API key to access the TomTom Traffic Service.

dataStore

The hybrid navigation data store containing both online and offline map stores.

locationProvider

LocationProvider for tracking position updates.

locale

Traffic client's Locale. See Traffic.updateLocale Defaults to en-US if the provided locale has an invalid or unsupported ISO 3166-1 alpha-3 country code.