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 RouteReplanner
for route re-calculation.
RouteReplanner
uses the provided RoutePlanner
to plan new routes.
Declaration
Swift
public static func create(
routePlanner: RoutePlanner
)
-> RouteReplanner
Parameters
routePlanner
|
The |
Return Value
An instance of RouteReplanner
.