RouteOptionsUpdater

class RouteOptionsUpdater

The updater can be used to create a new set of route request options to the existing destination, accounting for the progress along the route.

It's used by the default MapboxRerouteController (see OffRouteObserver and MapboxNavigation.setRerouteController).

Constructors

Link copied to clipboard
fun RouteOptionsUpdater()

Types

Link copied to clipboard
sealed class RouteOptionsResult

Describes a result of generating new options from the original request and the current route progress.

Functions

Link copied to clipboard
fun update(    routeOptions: RouteOptions?,     routeProgress: RouteProgress?,     locationMatcherResult: LocationMatcherResult?): RouteOptionsUpdater.RouteOptionsResult

Provides a new RouteOptions instance based on the original request options, the current route progress and location matcher result.