update

abstract fun update(routePlan: RoutePlan, routeUpdatedCallback: RouteUpdatedCallback? = null)

Updates the navigation session with a Route from a provided RoutePlan. If the navigation was started with a Route then this method will replace the current Route with the provided one. If the navigation was started without a Route then this method will start navigating on the provided Route.

An optional routeUpdatedCallback can be passed to report on the outcome of this operation.

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

Parameters

routePlan

Details of the route that will replace the currently navigated one (if any).

routeUpdatedCallback

Callback that reports on the outcome of a route update.