TomTomRouteReplanningEngine
public final class TomTomRouteReplanningEngine : RouteReplanningEngine
RouteReplanningEngine
implementation responsible for route replanning.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Initializer
Declaration
Swift
public convenience init()
-
Selector responsible for choosing the best route from a refreshed route and it’s alternatives
Declaration
Swift
public var betterRouteSelector: BetterRouteSelector
-
replan(parameters:
Asynchronous) Declaration
Swift
@available(*, deprecated, message: "This method is deprecated. Use replan(navigationSnapshot:reason:routeReplanner:﹚ async throws -> RouteReplanningResult instead") public func replan(parameters: RouteReplanParameters) async throws -> RouteReplanningResult
-
replan(navigationSnapshot:
Asynchronousreason: routeReplanner: ) Declaration
Swift
public func replan( navigationSnapshot: NavigationSnapshot, reason: ReplanRequestReason, routeReplanner: TomTomSDKRouteReplanner.RouteReplanner ) async throws -> RouteReplanningResult
-
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
public func shouldReplanRoute(_ route: Route) -> Bool
Return Value
A boolean value that indicates should we replan the route or not