TomTomSDKRouteReplannerDefault
TomTomSDKRouteReplannerDefault
The Route Replanner Default module implements the RouteReplanner interface, providing the necessary tools to create either an online or offline route replanner based on the instantiated TomTomNavigation object. This module enhances navigation functionality by facilitating real-time route adjustments in response to various navigation scenarios.
Functionalities
- Dynamic Route Updating: facilitates real-time updates to the route, allowing users to receive the latest navigation information as conditions change.
- Route Recovery Planning: facilitates planning a route back to the original path, ensuring that users can easily return to their intended course.
- Incremental Route Calculation: incrementally calculates route content, including navigation instructions and lane guidance, providing users with timely and relevant information throughout their journey.
RouteReplannerFactory is utilized to create an instance of the RouteReplanner.
API Overview
-
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.
Declaration
Swift
public enum RouteReplannerFactory