updateRoutesForTraffic

abstract fun updateRoutesForTraffic(routes: List<List<GeoPoint>>)

Update the list of routes for which the client is interested in receiving traffic along the route. Providing an empty list disables traffic along the route. It can be enabled again by providing new routes via this method.

Important: This is a Public Preview API. It may be changed or removed at any time.

Note that the availability of traffic along the route depends on the currently active traffic provider.

Receiving traffic along a navigated route can be useful to display traffic information for the route. However, it can also have a negative impact on planning routes onboard or finding faster alternatives.

Parameters

routes

The list of route poly-lines for which to receive and update traffic information.