addRoute

open fun addRoute(directionsRoute: DirectionsRoute)

Allows adding a single primary route for the user to traverse along. No alternative routes willbe drawn on top of the map. The route added will replace any previously added route(s).

Parameters

directionsRoute

the directions route which you'd like to display on the map