HybridRouteReplannerFactory

@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
object HybridRouteReplannerFactory

Deprecated

This API is deprecated, for more details please go to: https://developer.tomtom.com/navigation/android/releases/versions/2.1

Factory for creating instances of hybrid RouteReplanner.

The hybrid route replanner utilizes both online and offline routing capabilities for route replanning during a navigation session.

The RouteReplanner.update method attempts to replan routes using online routing services first and falls back to offline services if online routing fails. This ensures continuity in navigation even with intermittent internet connectivity.

The RouteReplanner.fullReplan method performs online and offline replanning in parallel, and the faster result is used, optimizing for response time.

The RouteReplanner.incrementRouteContents method first attempts to increment route contents using the online route planner. If the online route planner fails, it falls back to using the offline route planner.

Functions

Link copied to clipboard
fun create(onlineRoutePlanner: RoutePlanner, offlineRoutePlanner: RoutePlanner, configuration: RouteReplannerConfiguration = RouteReplannerConfiguration()): RouteReplanner

Creates a hybrid implementation of the RouteReplanner, designed to utilize both online and offline routing capabilities for route replanning during a navigation session.

Inherited functions

Link copied to clipboard
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
fun HybridRouteReplannerFactory.createOnlineFirst(onlineRoutePlanner: RoutePlanner, offlineRoutePlanner: RoutePlanner, navigationTileStore: NavigationTileStore, configuration: RouteReplannerConfiguration = RouteReplannerConfiguration()): RouteReplanner

Creates an instance of hybrid RouteReplanner configured with expectation of online first behaviour. Back to route behaviour is controlled by feature toggle