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:
onlineRoutePlanner
andofflineRoutePlanner
routeReplanner
routeReplanningEngine
At least one of the following properties must be specified:
hybridNavigationDataStore
apiKey
navigationTileStore
At least one of the following properties must be specified:
hybridNavigationDataStore
ndsStore
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
locationProvider
|
The |
apiKey
|
API key needed for navigation. |
navigationTileStore
|
Online data store used during initialization of navigation engines. |
ndsMapContext
|
Offline data store and its updater used during initialization of navigation engines. |
hybridNavigationDataStore
|
Hybrid data store used during the initialization of navigation engines. If it is provided, there is no need for |
dataStoreMaintenanceEngine
|
Engine that updates the data store. If not provided, an instance created by |
dataSourceSelectionEngine
|
The [DataStoreSelectionEngine] that is to be used during navigation. If not provided, an instance of |
mapMatchingEngine
|
The default |
horizonEngine
|
The default |
routeTrackingEngine
|
The default |
onlineRoutePlanner
|
Used for online route replanning during instantiation of a default |
offlineRoutePlanner
|
Used for offline route replanning while instantiating a default |
routeReplanner
|
Used while instantiating a default |
guidanceEngine
|
The default |
arrivalDetectionEngine
|
The default |
routeProgressEngine
|
The default [RouteProgressEngine] during navigation. If not provided, an instance of |
routeReplanningEngine
|
The default |
routeReplanningRetryPolicy
|
The default |
betterProposalAcceptanceMode
|
The default |
deviationReplanningMode
|
Defines whether |
vehicleProvider
|
The default |
safetyLocationsConfiguration
|
Configuration parameters for safety location data sources. If no configuration is specified, the horizon will not contain any |
hazardsConfiguration
|
Configuration parameters for hazard data sources. If no configuration is specified, the horizon will not contain any |