Configuration
public struct Configuration
The configuration used to set up Navigation SDK to work in online mode.
-
init(navigationTileStore:locationProvider: routePlanner: vehicleProvider: betterProposalAcceptanceMode: deviationReplanningMode: ) Simple configuration used to set up Navigation SDK to work in online mode.
Declaration
Swift
public init( navigationTileStore: NavigationTileStore, locationProvider: LocationProvider, routePlanner: RoutePlanner, vehicleProvider: VehicleProvider = VehicleProviderFactory.create(), betterProposalAcceptanceMode: BetterProposalAcceptanceMode = .automatic, deviationReplanningMode: DeviationReplanningMode = .automatic )Parameters
navigationTileStoreTile data store based on an online map.
locationProviderInforms navigation of location updates.
routePlannerUsed to update the active
TomTomSDKNavigationEngines/RoutePlanor to replan after deviation.vehicleProviderEnables navigation to listen to the changes of the vehicle state. If it’s not provided, an instance created by
TomTomSDKVehicle/VehicleProviderFactory/create(vehicle:observationHandler:)is used.betterProposalAcceptanceModeSpecifies how better route proposals are applied during navigation. If it’s not provided, the mode is set to
TomTomSDKNavigationEngines/BetterProposalAcceptanceMode/automatic.deviationReplanningModeDefines whether navigation should try to replan the active
TomTomSDKNavigationEngines/RoutePlanafter deviation. If it’s not provided, the deviation replanning mode is set toTomTomSDKNavigationEngines/DeviationReplanningMode/automatic. -
init(navigationTileStore:locationProvider: routePlanner: vehicleProvider: betterProposalAcceptanceMode: deviationReplanningMode: replanningRetryPolicy: routeReplanningEngine: dataStoreMaintenanceEngine: guidanceEngine: horizonEngine: mapMatchingEngine: routeTrackingEngine: routeProgressEngine: arrivalDetectionEngine: safetyLocationsConfiguration: hazardsConfiguration: ) Advanced configuration used to set up Navigation SDK to work in online mode.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public init( navigationTileStore: NavigationTileStore, locationProvider: LocationProvider, routePlanner: RoutePlanner, vehicleProvider: VehicleProvider = VehicleProviderFactory.create(), betterProposalAcceptanceMode: BetterProposalAcceptanceMode = .automatic, deviationReplanningMode: DeviationReplanningMode = .automatic, replanningRetryPolicy: ReplanningRetryPolicy = ReplanningRetryPolicyFactory.create(), routeReplanningEngine: RouteReplanningEngine? = nil, dataStoreMaintenanceEngine: DataStoreMaintenanceEngine? = nil, guidanceEngine: GuidanceEngine? = nil, horizonEngine: HorizonEngine? = nil, mapMatchingEngine: MapMatchingEngine? = nil, routeTrackingEngine: RouteTrackingEngine? = nil, routeProgressEngine: RouteProgressEngine? = nil, arrivalDetectionEngine: ArrivalDetectionEngine? = nil, safetyLocationsConfiguration: SafetyLocationsConfiguration? = nil, hazardsConfiguration: HazardsConfiguration? = nil )Parameters
navigationTileStoreTile data store based on an online map.
locationProviderInforms navigation of location updates.
routePlannerUsed by
TomTomSDKNavigationEngines/RouteReplanningEngineto update the activeTomTomSDKNavigationEngines/RoutePlanor to replan after a deviation. If a customTomTomSDKNavigationEngines/RouteReplanningEngineis specified in the configuration, this parameter will be ignored.vehicleProviderEnables navigation to listen to the changes of the vehicle state. If it’s not provided, an instance created by
TomTomSDKVehicle/VehicleProviderFactory/create(vehicle:observationHandler:)is used.betterProposalAcceptanceModeSpecifies how better route proposals are applied during navigation. If it’s not provided, the mode is set to
TomTomSDKNavigationEngines/BetterProposalAcceptanceMode/automatic.deviationReplanningModeDefines whether navigation should try to replan the active
TomTomSDKNavigationEngines/RoutePlanafter deviation. If it’s not provided, the deviation replanning mode is set toTomTomSDKNavigationEngines/DeviationReplanningMode/automatic.replanningRetryPolicySpecifies how to handle requests which failed during replanning of a
TomTomSDKRoute/Route. If it’s not provided, an instance ofTomTomSDKNavigation/ReplanningRetryPolicyFactory/create(maxRetryDelay:)is used.routeReplanningEngineEngine responsible for replanning a route during navigation.
nilby default.dataStoreMaintenanceEngineEngine responsible for instantiating updates of the data store.
nilby default.guidanceEngineEngine responsible for generating guidance instructions of the upcoming road maneuvers.
nilby default.horizonEngineEngine responsible for providing location context data extending beyond the driver’s visible horizon.
nilby default.mapMatchingEngineEngine responsible for improving position accuracy by attempting to match it to the map or the route.
nilby default.routeTrackingEngineEngine responsible for detecting whether the routes are being followed or not.
nilby default.routeProgressEngineEngine responsible for determining the progress made along the current route.
nilby default.arrivalDetectionEngineEngine responsible for deciding if the route’s destination has been reached.
nilby default.safetyLocationsConfigurationConfiguration parameters for safety location data sources. If no configuration is specified, the horizon will not contain any
safety location elements(TomTomSDKNavigationEngines/SafetyLocationElement). If a customTomTomSDKNavigationEngines/HorizonEngineis specified in the configuration, this parameter will be ignored.hazardsConfigurationConfiguration parameters for hazard data sources. If no configuration is specified, the horizon will not contain any
hazard elements(TomTomSDKNavigationEngines/HazardElement). If a customTomTomSDKNavigationEngines/HorizonEngineis specified in the configuration, this parameter will be ignored.
TomTom SDK for iOS (0.53.1)
Configuration