Configuration
public struct Configuration
The configuration used to set up Navigation SDK to work in hybrid mode. At least one of the following properties or combinations of properties must be specified:
onlineRoutePlannerandofflineRoutePlannerrouteReplannerrouteReplanningEngine
At least one of the following properties must be specified:
hybridNavigationDataStoreapiKeynavigationTileStore
At least one of the following properties must be specified:
hybridNavigationDataStorendsStore
-
init(locationProvider:apiKey: navigationTileStore: ndsMapContext: hybridNavigationDataStore: dataStoreMaintenanceEngine: dataSourceSelectionEngine: mapMatchingEngine: horizonEngine: routeTrackingEngine: onlineRoutePlanner: offlineRoutePlanner: routeReplanner: guidanceEngine: arrivalDetectionEngine: routeProgressEngine: routeReplanningEngine: routeReplanningRetryPolicy: betterProposalAcceptanceMode: deviationReplanningMode: vehicleProvider: safetyLocationsConfiguration: hazardsConfiguration: ) Creates a configuration to set up the Navigation SDK for hybrid mode.
Declaration
Swift
public init( locationProvider: LocationProvider, apiKey: String? = nil, navigationTileStore: NavigationTileStore? = nil, ndsMapContext: NDSMapContext? = nil, hybridNavigationDataStore: HybridNavigationDataStore? = nil, dataStoreMaintenanceEngine: DataStoreMaintenanceEngine? = nil, dataSourceSelectionEngine: DataSourceSelectionEngine? = nil, mapMatchingEngine: MapMatchingEngine? = nil, horizonEngine: HorizonEngine? = nil, routeTrackingEngine: RouteTrackingEngine? = nil, onlineRoutePlanner: TomTomSDKRoutePlanner.RoutePlanner? = nil, offlineRoutePlanner: TomTomSDKRoutePlanner.RoutePlanner? = nil, routeReplanner: TomTomSDKRouteReplanner.RouteReplanner? = nil, guidanceEngine: GuidanceEngine = TomTomDynamicGuidanceEngine(), arrivalDetectionEngine: ArrivalDetectionEngine = TomTomArrivalDetectionEngine(), routeProgressEngine: RouteProgressEngine = StandaloneRouteProgressEngine(), routeReplanningEngine: RouteReplanningEngine = TomTomRouteReplanningEngine(), routeReplanningRetryPolicy: ReplanningRetryPolicy = ReplanningRetryPolicyFactory.create(), betterProposalAcceptanceMode: BetterProposalAcceptanceMode = .automatic, deviationReplanningMode: DeviationReplanningMode = .automatic, vehicleProvider: VehicleProvider = VehicleProviderFactory.create(), safetyLocationsConfiguration: SafetyLocationsConfiguration? = nil, hazardsConfiguration: HazardsConfiguration? = nil )Parameters
locationProviderThe
LocationProviderto be used during navigation.apiKeyAPI key needed for navigation.
navigationTileStoreOnline data store used during initialization of navigation engines.
ndsMapContextOffline data store and its updater used during initialization of navigation engines.
hybridNavigationDataStoreHybrid data store used during the initialization of navigation engines. If it is provided, there is no need for
navigationTileStoreandndsStore.dataStoreMaintenanceEngineEngine that updates the data store. If not provided, an instance created by
DataStoreMaintenanceEngineFactoryis used.dataSourceSelectionEngineThe [DataStoreSelectionEngine] that is to be used during navigation. If not provided, an instance of
DefaultDataStoreSelectionEngineis used.mapMatchingEngineThe default
MapMatchingEngineduring navigation. If not provided, an instance created byHybridMapMatchingEngineFactoryis used.horizonEngineThe default
HorizonEngineduring navigation.routeTrackingEngineThe default
RouteTrackingEngineduring navigation. If not provided, an instance ofDefaultRouteTrackingEngineis used.onlineRoutePlannerUsed for online route replanning during instantiation of a default
RouteReplanner.offlineRoutePlannerUsed for offline route replanning while instantiating a default
RouteReplanner.routeReplannerUsed while instantiating a default
RouteReplanningEngine.guidanceEngineThe default
GuidanceEngineduring navigation. If not provided, an instance ofTomTomDynamicGuidanceEngineis used.arrivalDetectionEngineThe default
ArrivalDetectionEngineduring navigation. If not provided, an instance ofTomTomArrivalDetectionEngineis used.routeProgressEngineThe default [RouteProgressEngine] during navigation. If not provided, an instance of
StandaloneRouteProgressEngineis used.routeReplanningEngineThe default
RouteReplanningEngineduring navigation. If not provided, an instance ofTomTomRouteReplanningEngineis used.routeReplanningRetryPolicyThe default
ReplanningRetryPolicyduring navigation. If not provided, an instance ofDefaultReplanningRetryPolicyis used.betterProposalAcceptanceModeThe default
BetterProposalAcceptanceModeduring navigation. If not provided, the mode is set toBetterProposalAcceptanceMode.automatic.deviationReplanningModeDefines whether
RouteReplanningEngineshould try replanning the activeRoutePlanafter deviation. If not provided, the deviation replanning mode is set toDeviationReplanningMode.Automatic.vehicleProviderThe default
VehicleProviderduring navigation. If not provided, an instance created byVehicleProviderFactory.createis used.safetyLocationsConfigurationConfiguration parameters for safety location data sources. If no configuration is specified, the horizon will not contain any
SafetyLocationElement. This parameter is ignored if a customHorizonEngineis specified in the configuration.hazardsConfigurationConfiguration parameters for hazard data sources. If no configuration is specified, the horizon will not contain any
HazardElement. This parameter is ignored if a customHorizonEngineis specified in the configuration.
TomTom SDK for iOS (0.53.1)
Configuration