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. Online first behaviour is controlled by feature toggles

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.