sdk-maps / com.tomtom.online.sdk.map / RouteExtension / showTrafficOnRoute

showTrafficOnRoute

abstract fun showTrafficOnRoute(routeId: Long, trafficStyle: MutableMap<RouteTrafficStyle!, MutableList<TrafficData!>!>!): Unit

Draw the traffic on the route.

Parameters

routeId - Long: The id of the map's route.

trafficStyle - MutableMap<RouteTrafficStyle!, MutableList<TrafficData!>!>!: Map of RouteTrafficStyle as the key and array with TrafficData as values.