RouteReplanningEngine

public protocol RouteReplanningEngine

Engine responsible for replanning a route.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Selector responsible for choosing the best route from a refreshed route and it’s alternatives

    Declaration

    Swift

    var betterRouteSelector: BetterRouteSelector { get set }
  • Replan a given Route

    Declaration

    Swift

    func replan(
        parameters: RouteReplanParameters,
        completion: @escaping (RouteReplanningResult) -> ()
    ) throws

    Parameters

    parameters

    Parameters for a route replan.

    completion

    Completion block with a result of replan operation.

  • Checks if it is time to refresh the current route. This function might be called on every location update, so it is the engine’s responsibility to limit the replanning frequency.

    Declaration

    Swift

    func shouldReplanRoute() -> Bool