createOnlineMode
fun createOnlineMode(context: Context, apiKey: String, dataStore: NavigationTileStore, locationProvider: LocationProvider, locale: Locale): Traffic
Important: This is a Public Preview API. It may be changed or removed at any time.
Creates a Traffic implementation for the default TomTom traffic provider with the default configuration. This method should be used when using the "online" configuration (NDS.live online map only).
Parameters
context
Application context.
apiKey
API key to access the TomTom Traffic Service.
dataStore
The online navigation tile store.
locationProvider
LocationProvider for tracking position updates.
locale
Traffic client's Locale. See Traffic.updateLocale