drawRoute

open fun drawRoute(route: DirectionsRoute)

Will draw the given DirectionsRoute on the map using the colors definedin your given 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

route

to be drawn