Configuration
public struct Configuration
The configuration used to set up Navigation SDK to work in off-road mode.
-
init(locationProvider:
routeReplanner: mapMatchingEngine: routeTrackingEngine: guidanceEngine: arrivalDetectionEngine: routeProgressEngine: routeReplanningEngine: routeReplanningRetryPolicy: routeDeviationReplanningRetryPolicy: betterProposalAcceptanceMode: deviationReplanningMode: vehicleProvider: ) The configuration to set up Navigation SDK for off-road mode.
Declaration
Swift
public init( locationProvider: LocationProvider, routeReplanner: TomTomSDKRouteReplanner.RouteReplanner = OffRoadRouteReplannerFactory.create(), mapMatchingEngine: MapMatchingEngine = OffRoadMapMatchingEngineFactory.create(), routeTrackingEngine: RouteTrackingEngine = OffRoadRouteTrackingEngineFactory.create(), guidanceEngine: GuidanceEngine = OffRoadGuidanceEngineFactory.create(), arrivalDetectionEngine: ArrivalDetectionEngine = OffRoadArrivalDetectionEngineFactory.create(), routeProgressEngine: RouteProgressEngine = OffRoadRouteProgressEngineFactory.create(), routeReplanningEngine: RouteReplanningEngine = TomTomRouteReplanningEngine(), routeReplanningRetryPolicy: ReplanningRetryPolicy = ReplanningRetryPolicyFactory.create(), routeDeviationReplanningRetryPolicy: ReplanningRetryPolicy = ReplanningRetryPolicyFactory.create(), betterProposalAcceptanceMode: BetterProposalAcceptanceMode = .manual, deviationReplanningMode: DeviationReplanningMode = DeviationReplanningMode.none, vehicleProvider: VehicleProvider = VehicleProviderFactory.create() )
Parameters
locationProvider
The default
LocationProvider
during navigation.routeReplanner
Used while instantiating a default
RouteReplanningEngine
. If not provided, an instance created byOffRoadRouteReplannerFactory
is used.mapMatchingEngine
The default
MapMatchingEngine
during navigation. If not provided, an instance created byOffRoadMapMatchingEngineFactory
is used.routeTrackingEngine
The default
RouteTrackingEngine
during navigation. If not provided, an instance created byOffRoadRouteTrackingEngineFactory
is used.guidanceEngine
The default
GuidanceEngine
during navigation. If not provided, an instance created byOffRoadGuidanceEngineFactory
is used.arrivalDetectionEngine
The default
ArrivalDetectionEngine
during navigation. If not provided, an instance created byOffRoadArrivalDetectionEngineFactory
is used.routeProgressEngine
The default
RouteProgressEngine
during navigation. If not provided, an instance created byOffRoadRouteProgressEngineFactory
is used.routeReplanningEngine
The default
RouteReplanningEngine
during navigation. If not provided, an instance ofTomTomRouteReplanningEngine
is used.routeReplanningRetryPolicy
The default
ReplanningRetryPolicy
during navigation. If not provided, an instance ofDefaultReplanningRetryPolicy
is used.routeDeviationReplanningRetryPolicy
The default
ReplanningRetryPolicy
during navigation. If not provided, an instance ofDefaultReplanningRetryPolicy
is used.betterProposalAcceptanceMode
The default
BetterProposalAcceptanceMode
during navigation. If not provided, the mode is set toBetterProposalAcceptanceMode.Manual
.deviationReplanningMode
Defines whether
RouteReplanningEngine
should try replanning the activeRoutePlan
after deviation. If not provided, the deviation replanning mode is set toDeviationReplanningMode.None
.vehicleProvider
The default
VehicleProvider
during navigation. If not provided, an instance created byVehicleProviderFactory.create
is used.