Package-level declarations
TomTom implementation provides Traffic functionality and configuration for the TomTom TPEG traffic provider. By using this package you can:
Create the traffic client,
Create a data provider to visualize traffic on the map,
Subscribe to changes in the traffic situation,
Use the data from the traffic data provider for the offline route calculation.
Once a traffic data provider instance is created and connected to a source of traffic, depending on the implementation, it starts receiving traffic data as offered by the provider, for example, near the current location, along the route, or for the current country/area.
Types
Link copied to clipboard
object TrafficClientFactory
Responsible for creating the default Traffic implementation.
Link copied to clipboard
class TrafficTpegConfiguration(val apiKey: String, val initSessionUrl: Uri, val updateFrequency: Duration = DEFAULT_UPDATE_FREQUENCY, val innerRadius: Distance = DEFAULT_INNER_RADIUS, val outerRadius: Distance = DEFAULT_OUTER_RADIUS, val maxNumberOfEvents: Int = DEFAULT_MAX_EVENTS, val trafficCacheEnabled: Boolean = false, val webRequestDumpDirectory: String? = null, fileFeedDirectory: String? = null, fileFeedPattern: String = ".*")
Configuration for the TomTom TPEG traffic provider.