create
fun create(context: Context, apiKey: String, ndsStore: NdsStore, locationProvider: LocationProvider, locale: Locale): Traffic
Creates a Traffic implementation for the default TomTom traffic provider with the default configuration.
Important: This is a Public Preview API. It may be changed or removed at any time.
Parameters
context
Application context.
apiKey
API key to access the TomTom Traffic Service.
ndsStore
DataStore which is based on an onboard NDS map.
locationProvider
LocationProvider for tracking position updates.
locale
Traffic client's Locale. See Traffic.updateLocale