drawRoutes

open fun drawRoutes(routes: List<out DirectionsRoute>)

Will draw the given list of DirectionsRoute on the map using the colors definedin your given style.

The primary route will default to the first route in the directions route list.All other routes in the list will be drawn on the map using the alternative route style.

In most of the scenarios, this call can be wired to the onRoutesChanged to display the route that MapboxNavigation uses to compute the route progress.

See also

com.mapbox.navigation.core.MapboxNavigation

MapboxNavigation#registerRoutesObserver(RoutesObserver)

Parameters

routes

to be drawn