RouteReplannerFactory
public enum RouteReplannerFactory
Factory for creating RouteReplanner instances.
RouteReplanner is used by navigation to either:
- Get an updated version of the current route when route refresh is triggered.
- Get a new route when deviation is detected.
- Get an updated version of the route when there are instructions missing from the current route.
Example of RouteReplannerFactory usage:
let routePlanner = OnlineRoutePlanner(apiKey: "<APIKEY>")
let routeReplanner = RouteReplannerFactory.create(routePlanner: routePlanner)
To set up RouteReplanner you will need to create a TomTomNavigation object using either:
Important
This is a Public Preview API. It may be changed or removed at any time.
-
Creates and returns an instance of
RouteReplannerfor route re-calculation.RouteReplanneruses the providedRoutePlannerto plan new routes.Declaration
Swift
public static func create( routePlanner: RoutePlanner ) -> RouteReplannerParameters
routePlannerThe
RoutePlannerused to plan new routes.Return Value
An instance of
RouteReplanner.
TomTom SDK for iOS (0.53.1)
RouteReplannerFactory