Configuration

public struct Configuration

The configuration used to set up Navigation SDK to work in offline mode.

Lifecycle

  • The configuration to set up Navigation SDK for offline mode.

    Declaration

    Swift

    public init(
        locationProvider: LocationProvider,
        routeReplanner: TomTomSDKRouteReplanner.RouteReplanner,
        ndsStore: NDSStore,
        mapMatchingEngine: MapMatchingEngine? = nil,
        locationContextProviderEngine: LocationContextProviderEngine? = nil,
        horizonEngine: HorizonEngine? = nil,
        routeTrackingEngine: RouteTrackingEngine? = nil,
        routeProjectionEngine: RouteProjectionEngine? = nil,
        dataStoreMaintenanceEngine: DataStoreMaintenanceEngine? = nil,
        guidanceEngine: GuidanceEngine = TomTomGuidanceEngine(),
        arrivalDetectionEngine: ArrivalDetectionEngine = TomTomArrivalDetectionEngine(),
        routeProgressEngine: RouteProgressEngine = StandaloneRouteProgressEngine(),
        routeReplanningEngine: RouteReplanningEngine = TomTomRouteReplanningEngine(),
        routeReplanningRetryPolicy: ReplanningRetryPolicy = TomTomReplanningRetryPolicy(),
        routeDeviationReplanningRetryPolicy: ReplanningRetryPolicy = TomTomReplanningRetryPolicy(forDeviation: true),
        betterProposalAcceptanceMode: BetterProposalAcceptanceMode = .default,
        deviationReplanningMode: DeviationReplanningMode = .default,
        vehicleProvider: VehicleProvider = DefaultVehicleProvider()
    )

    Parameters

    locationProvider

    The default LocationProvider during navigation.

    routeReplanner

    Used while instantiating a default RouteReplanningEngine.

    ndsStore

    Offline data store used while initializing navigation engines.

    mapMatchingEngine

    The default MapMatchingEngine during navigation. If not provided, an instance created by OfflineMapMatchingEngineFactory is used.

    locationContextProviderEngine

    The default LocationContextProviderEngine during navigation. If not provided, an instance created by OfflineLocationContextProviderEngineFactory is used.

    horizonEngine

    The default HorizonEngine during navigation. If not provided, an instance created by OfflineHorizonEngineFactory is used.

    routeTrackingEngine

    The default RouteTrackingEngine during navigation. If not provided, an instance of DefaultRouteTrackingEngine is used.

    routeProjectionEngine

    The default RouteProjectionEngine during navigation. If not provided, an instance created by OfflineRouteProjectionEngineFactory is used.

    dataStoreMaintenanceEngine

    Engine that updates the data store. If not provided, an instance created by DefaultDataStoreMaintenanceEngineFactory is used.

    guidanceEngine

    The default GuidanceEngine during navigation. If not provided, an instance of TomTomGuidanceEngine is used.

    arrivalDetectionEngine

    The default ArrivalDetectionEngine during navigation. If not provided, an instance of TomTomArrivalDetectionEngine is used.

    routeProgressEngine

    The default [RouteProgressEngine] during navigation. If not provided, an instance of StandaloneRouteProgressEngine is used.

    routeReplanningEngine

    The default RouteReplanningEngine during navigation. If not provided, an instance of TomTomRouteReplanningEngine is used.

    routeReplanningRetryPolicy

    The default ReplanningRetryPolicy during navigation. If not provided, an instance of TomTomReplanningRetryPolicy is used.

    routeDeviationReplanningRetryPolicy

    The default ReplanningRetryPolicy during navigation. If not provided, an instance of TomTomReplanningRetryPolicy is used.

    betterProposalAcceptanceMode

    The default BetterProposalAcceptanceMode during navigation. If not provided, the mode is set to BetterProposalAcceptanceMode.Automatic.

    deviationReplanningMode

    Defines whether RouteReplanningEngine should try replanning the active RoutePlan after deviation. If not provided, the deviation replanning mode is set to DeviationReplanningMode.Automatic.

    vehicleProvider

    The default VehicleProvider during navigation. If not provided, an instance of DefaultVehicleProvider is used.