RouteReplanningEngine

interface RouteReplanningEngine : Disposable

Responsible for replanning a route.

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

Functions

Link copied to clipboard
abstract fun dispose()
Link copied to clipboard
abstract fun replan(navigationSnapshot: NavigationSnapshot): Result<List<ReplannedRoute>, RouteReplanningError>

Replans a given Route. If supporting points were given when planning the route, they will be used in the reconstruction as well, otherwise the road geometry points will be used. Returns more than one route in case a better route proposal was found.

Link copied to clipboard
abstract fun shouldReplan(navigationSnapshot: NavigationSnapshot): Boolean

Checks if current Route should be replanned.