startActiveGuidance

abstract fun startActiveGuidance(): Expected<NavigationViewApiError, Unit>

Request NavigationView to enter active navigation state.

NavigationViewListener.onActiveNavigation will be called once NavigationView enters route preview state.

Fails with an error when either destination or preview routes has not been set.


abstract fun startActiveGuidance(routes: List<NavigationRoute>): Expected<NavigationViewApiError, Unit>

Sets routes and request NavigationView to enter active navigation state. Last DirectionsWaypoint location will be used as the destination.

NavigationViewListener.onDestinationChanged will be called once new destination is set and NavigationViewListener.onActiveNavigation will be called once NavigationView enters active navigation state.

Fails with an error when routes is an empty list.