createOnlineFirst
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
com.tomtom.sdk.navigation.featuretoggle.HybridOnlineFirstBackToRouteFeature With HybridOnlineFirstBackToRouteFeature enabled, the tileStore is used to create a cache route planner.
Important: This is a Public Preview API. It may be changed or removed at any time.
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.