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

showTrafficOnRoute

@PublicPreview("2021.08") abstract fun showTrafficOnRoute(routeId: Long, trafficStyle: MutableMap<RouteLayerStyle!, MutableList<TrafficData!>!>!): Unit

Draw the traffic on the route.

Parameters

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

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