Configuration

data class Configuration(val context: Context, val locationProvider: LocationProvider, val ndsStore: NdsStore, val dataStoreMaintenanceEngine: DataStoreMaintenanceEngine? = null, val routePlanner: RoutePlanner? = null, val routeReplanner: RouteReplanner? = null, val routeReplanningEngine: RouteReplanningEngine? = null, val replanningRetryPolicy: ReplanningRetryPolicy = TomTomReplanningRetryPolicy(), val betterProposalAcceptanceMode: BetterProposalAcceptanceMode = BetterProposalAcceptanceMode.Manual, val deviationReplanningMode: DeviationReplanningMode = DeviationReplanningMode.Automatic, val guidanceEngine: GuidanceEngine = GuidanceEngineFactory.createStaticGuidanceEngine( context, GuidanceEngineOptions() ), val horizonEngine: HorizonEngine? = null, val mapMatchingEngine: MapMatchingEngine? = null, val locationContextProviderEngine: LocationContextProviderEngine? = null, val routeProjectionEngine: RouteProjectionEngine? = null, val routeTrackingEngine: RouteTrackingEngine = RouteTrackingEngineFactory.create(), val routeProgressEngine: RouteProgressEngine = RouteProgressEngineFactory.create(), val arrivalDetectionEngine: ArrivalDetectionEngine = DefaultArrivalDetectionEngineFactory.create(), val vehicleProvider: VehicleProvider = DefaultVehicleProvider(), val telemetry: Telemetry? = null)

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

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, ndsStore: NdsStore, dataStoreMaintenanceEngine: DataStoreMaintenanceEngine? = null, routePlanner: RoutePlanner? = null, routeReplanner: RouteReplanner? = null, routeReplanningEngine: RouteReplanningEngine? = null, replanningRetryPolicy: ReplanningRetryPolicy = TomTomReplanningRetryPolicy(), betterProposalAcceptanceMode: BetterProposalAcceptanceMode = BetterProposalAcceptanceMode.Manual, deviationReplanningMode: DeviationReplanningMode = DeviationReplanningMode.Automatic, guidanceEngine: GuidanceEngine = GuidanceEngineFactory.createStaticGuidanceEngine( context, GuidanceEngineOptions() ), horizonEngine: HorizonEngine? = null, mapMatchingEngine: MapMatchingEngine? = null, locationContextProviderEngine: LocationContextProviderEngine? = null, routeProjectionEngine: RouteProjectionEngine? = null, routeTrackingEngine: RouteTrackingEngine = RouteTrackingEngineFactory.create(), routeProgressEngine: RouteProgressEngine = RouteProgressEngineFactory.create(), arrivalDetectionEngine: ArrivalDetectionEngine = DefaultArrivalDetectionEngineFactory.create(), vehicleProvider: VehicleProvider = DefaultVehicleProvider(), telemetry: Telemetry? = null)

Properties

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

The default BetterProposalAcceptanceMode during navigation. If it's not provided, the mode is set to BetterProposalAcceptanceMode.Manual.

Link copied to clipboard

Initializes Android dependencies.

Link copied to clipboard

Engine that updates the data store. If it's not provided, an instance created by DataStoreMaintenanceEngineFactory is used.

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.createStaticGuidanceEngine is used.

Link copied to clipboard

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

Link copied to clipboard

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

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 OfflineMapMatchingEngineFactory.create is used.

Link copied to clipboard

Offline data store used during initialization of navigation engines.

Link copied to clipboard

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

Link copied to clipboard

Used during instantiation of a default RouteReplanningEngine.

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 OfflineRouteProjectionEngineFactory.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
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 of DefaultVehicleProvider is used.