Configuration

data class Configuration(val context: Context, val locationProvider: LocationProvider, val hybridNavigationDataStore: HybridNavigationDataStore? = null, val ndsMapContext: NdsMapContext? = null, val apiKey: String? = null, val navigationTileStore: NavigationTileStore? = null, val dataStoreMaintenanceEngine: DataStoreMaintenanceEngine? = null, val dataStoreSelectionEngine: DataStoreSelectionEngine? = null, val onlineRoutePlanner: RoutePlanner? = null, val offlineRoutePlanner: RoutePlanner? = null, val routeReplanner: RouteReplanner? = null, val routeReplanningEngine: RouteReplanningEngine? = null, val replanningRetryPolicy: ReplanningRetryPolicy = ReplanningRetryPolicyFactory.create(), val betterProposalAcceptanceMode: BetterProposalAcceptanceMode = BetterProposalAcceptanceMode.Automatic, val deviationReplanningMode: DeviationReplanningMode = DeviationReplanningMode.Automatic, val guidanceEngine: GuidanceEngine = GuidanceEngineFactory.createDynamicGuidanceEngine( context, GuidanceEngineOptions() ), val horizonEngine: HorizonEngine? = null, val mapMatchingEngine: MapMatchingEngine? = null, val routeProjectionEngine: RouteProjectionEngine? = null, val routeTrackingEngine: RouteTrackingEngine = RouteTrackingEngineFactory.create(), val routeProgressEngine: RouteProgressEngine = RouteProgressEngineFactory.create(), val arrivalDetectionEngine: ArrivalDetectionEngine = DefaultArrivalDetectionEngineFactory.create(), val vehicleProvider: VehicleProvider = VehicleProviderFactory.create(), val telemetry: Telemetry? = null, val safetyLocations: SafetyLocations? = null)

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:

At least one of the following properties must be specified:

At least one of the following properties must be specified:

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
constructor(context: Context, locationProvider: LocationProvider, hybridNavigationDataStore: HybridNavigationDataStore? = null, ndsMapContext: NdsMapContext? = null, apiKey: String? = null, navigationTileStore: NavigationTileStore? = null, dataStoreMaintenanceEngine: DataStoreMaintenanceEngine? = null, dataStoreSelectionEngine: DataStoreSelectionEngine? = null, onlineRoutePlanner: RoutePlanner? = null, offlineRoutePlanner: RoutePlanner? = null, routeReplanner: RouteReplanner? = null, routeReplanningEngine: RouteReplanningEngine? = null, replanningRetryPolicy: ReplanningRetryPolicy = ReplanningRetryPolicyFactory.create(), betterProposalAcceptanceMode: BetterProposalAcceptanceMode = BetterProposalAcceptanceMode.Automatic, deviationReplanningMode: DeviationReplanningMode = DeviationReplanningMode.Automatic, guidanceEngine: GuidanceEngine = GuidanceEngineFactory.createDynamicGuidanceEngine( context, GuidanceEngineOptions() ), horizonEngine: HorizonEngine? = null, mapMatchingEngine: MapMatchingEngine? = null, routeProjectionEngine: RouteProjectionEngine? = null, routeTrackingEngine: RouteTrackingEngine = RouteTrackingEngineFactory.create(), routeProgressEngine: RouteProgressEngine = RouteProgressEngineFactory.create(), arrivalDetectionEngine: ArrivalDetectionEngine = DefaultArrivalDetectionEngineFactory.create(), vehicleProvider: VehicleProvider = VehicleProviderFactory.create(), telemetry: Telemetry? = null, safetyLocations: SafetyLocations? = null)

Properties

Link copied to clipboard
val apiKey: String? = null

API key needed for navigation.

Link copied to clipboard

The default ArrivalDetectionEngine during navigation. If it's not provided, an instance created by DefaultArrivalDetectionEngineFactory.create is used.

Link copied to clipboard
Link copied to clipboard

Initializes Android dependencies.

Link copied to clipboard

Custom engine that updates the data store. If it is not provided, a default implementation of DataStoreMaintenanceEngine based on NdsMapContext.updater will be used. Note that if NdsMapContext.updater is null, the offline map data will not be updated.

Link copied to clipboard
val dataStoreSelectionEngine: DataStoreSelectionEngine? = null

The default DataStoreSelectionEngine during navigation. If it's not provided, an instance created by DefaultDataStoreSelectionEngineFactory is used (in OfflineFirst mode).

Link copied to clipboard

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

Link copied to clipboard

The default GuidanceEngine during navigation. If it's not provided, an instance created by GuidanceEngineFactory.createDynamicGuidanceEngine is used.

Link copied to clipboard

The default HorizonEngine during navigation.

Link copied to clipboard

Hybrid data store used during initialization of navigation engines.

Link copied to clipboard

The default LocationProvider during navigation.

Link copied to clipboard

The default MapMatchingEngine during navigation. If it's not provided, an instance created by HybridMapMatchingEngineFactory.create is used. If it's not provided, an instance created by HybridLocationContextProviderEngineFactory.create is used.

Link copied to clipboard

Online data store used during initialization of navigation engines.

Link copied to clipboard

Wrapper over the NdsStore and NdsMapUpdater objects.

Link copied to clipboard

Used during instantiation of a default RouteReplanningEngine.

Link copied to clipboard

Used during instantiation of a default RouteReplanningEngine.

Link copied to clipboard

The default ReplanningRetryPolicy during navigation. If it's not provided, an instance created by ReplanningRetryPolicyFactory.create is used.

Link copied to clipboard

The default RouteProgressEngine during navigation. If it's not provided, an instance created by RouteProgressEngineFactory.create is used.

Link copied to clipboard

The default RouteProjectionEngine during navigation. If it's not provided, an instance created by HybridRouteProjectionEngineFactory.create is used.

Link copied to clipboard

Used during instantiation of a default RouteReplanningEngine.

Link copied to clipboard

The default RouteReplanningEngine during navigation.

Link copied to clipboard

The default RouteTrackingEngine during navigation. If it's not provided, an instance created by RouteTrackingEngineFactory.create is used.

Link copied to clipboard

Safety location data provider. It provides safety location data during navigation, which will be used by the horizon engine. If no safety location data provider is specified, there will be no safety location horizon elements in the horizon. If a custom horizon engine is specified in the configuration, this parameter will be ignored: the safety location data providers are injected into the custom horizon engine.

Link copied to clipboard
val telemetry: Telemetry? = null

Used to send telemetry data.

Link copied to clipboard

The default VehicleProvider during navigation. If it's not provided, an instance created by VehicleProviderFactory.create is used.