createOnlineFirst

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

Deprecated

This will be removed from future releases after 2027-02-05.

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

  • com.tomtom.sdk.navigation.featuretoggle.HybridOnlineFirstBackToRouteFeature With HybridOnlineFirstBackToRouteFeature enabled, the tileStore is used to create a cache route planner.

Parameters

onlineRoutePlanner

RouteReplanner used to execute online routing requests.

offlineRoutePlanner

RouteReplanner used to execute offline routing requests.

navigationTileStore

NavigationTileStore used to create cache route planner.

configuration

RouteReplannerConfiguration used for route replanning.

Throws

if none of the feature toggles are enabled.