TomTomNavigation

Responsible for interacting with and customizing a navigation.

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

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Adds an OnDestinationReachedListener which will inform about reaching destination the ArrivalDetectionEngine successfully detects arrival at the destination.

Link copied to clipboard

Adds an OnGuidanceUpdateListener which will inform about new Guidance each time a location change occurs and the GuidanceEngine successfully generates it.

Link copied to clipboard

Adds an OnHorizonUpdatedListener which will inform about new horizon snaphot each time a location change occurs and the HorizonEngine successfully updated it.

Link copied to clipboard

Adds an OnLaneGuidanceUpdateListener which will report new LaneGuidance every time a location change occurs and the GuidanceEngine successfully generates it.

Link copied to clipboard

Adds an OnLocationContextUpdateListener which will inform about new LocationContext each time a location change occurs and the LocationContextProviderEngine successfully provides it.

Link copied to clipboard

Adds an OnLocationMatchedListener which will inform about new MatchedLocation each time a location change occurs and the MapMatchingEngine successfully matched it.

Adds an OnLocationPredictionsGeneratedListener which will inform about new predictions.

Link copied to clipboard

Adds an OnNavigationErrorListener which will inform about errors that occurred during navigating.

Link copied to clipboard

Adds an OnNavigationStartedListener which will inform about successful navigation start.

Link copied to clipboard

Adds an OnProgressUpdateListener which will inform about new progress along the route each time a location change occurs and the RouteProgressEngine successfully calculates it.

Link copied to clipboard

Adds an OnReplannedRouteProposedListener which will inform about new ReplannedRoute. Its Route can either be used in update or discarded. Listener will only be triggered if ContinuousReplanningMode is set to ContinuousReplanningMode.Manual or ContinuousReplanningMode.UnreachableOnly in NavigationConfiguration.

Link copied to clipboard

Adds an OnRouteDeviationListener which will inform about getting off the route when the RouteTrackingEngine successfully detects it.

Link copied to clipboard

Adds an OnRoutesChangedListener which will inform about successful update of the Route.

Link copied to clipboard

Adds an OnRouteUpdatedListener which will inform about successful update of the Route.

Link copied to clipboard

Adds an OnWaypointVisitedListener which will inform about reaching waypoints when the ArrivalDetectionEngine successfully detects arrival at a waypoint.

Link copied to clipboard

Returns the current ArrivalDetectionEngine.

Link copied to clipboard
open override fun changeContinuousReplanningMode(continuousReplanningMode: ContinuousReplanningMode)

Replaces the current ContinuousReplanningMode with the new one.

Link copied to clipboard
open override fun close()
Link copied to clipboard

Returns the current ContinuousReplanningMode.

Link copied to clipboard
open override fun guidanceEngine(): GuidanceEngine

Returns the current GuidanceEngine.

Link copied to clipboard
open override fun horizonEngine(): HorizonEngine?

Returns the current HorizonEngine.

Link copied to clipboard

Returns the current LocationContextProviderEngine.

Link copied to clipboard
open override fun locationProvider(): LocationProvider

Returns the current LocationProvider.

Link copied to clipboard

Returns the current MapMatchingEngine.

Link copied to clipboard

Returns the current NavigationSnapshot. The return value is null when navigation is not yet started or already stopped.

Link copied to clipboard

Removes previously registered OnDestinationReachedListener.

Link copied to clipboard

Removes previously registered OnGuidanceUpdateListener.

Link copied to clipboard

Removes previously registered OnHorizonUpdatedListener.

Link copied to clipboard

Removes previously registered OnLaneGuidanceUpdateListener.

Link copied to clipboard

Removes previously registered OnLocationMatchedListener.

Link copied to clipboard

Removes previously registered OnNavigationErrorListener.

Link copied to clipboard

Removes previously registered OnNavigationStartedListener.

Link copied to clipboard

Removes previously registered OnProgressUpdateListener.

Link copied to clipboard

Removes previously registered OnRouteDeviationListener.

Link copied to clipboard

Removes previously registered OnRoutesChangedListener.

Link copied to clipboard

Removes previously registered OnRouteUpdatedListener.

Link copied to clipboard

Removes previously registered OnWaypointVisitedListener.

Link copied to clipboard

Returns the current RouteProgressEngine.

Link copied to clipboard

Returns the current RouteTrackingEngine.

Link copied to clipboard

Replaces current ArrivalDetectionEngine with the new one.

Link copied to clipboard
open override fun setGuidanceEngine(engine: GuidanceEngine)

Replaces current GuidanceEngine with the new one.

Link copied to clipboard
open override fun setHorizonEngine(engine: HorizonEngine)

Replaces current HorizonEngine with the new one.

Link copied to clipboard

Replaces current LocationContextProviderEngine with the new one.

Link copied to clipboard
open override fun setLocationProvider(engine: LocationProvider)

Replaces current LocationProvider with the new one.

Link copied to clipboard
open override fun setMapMatchingEngine(engine: MapMatchingEngine)

Replaces current MapMatchingEngine with the new one.

Link copied to clipboard
open override fun setRouteProgressEngine(engine: RouteProgressEngine)

Replaces current RouteProgressEngine with the new one.

Link copied to clipboard
open override fun setRouteTrackingEngine(engine: RouteTrackingEngine)

Replaces current RouteTrackingEngine with the new one.

Link copied to clipboard
open override fun setUnitSystem(unitSystem: UnitSystemType)

Sets the UnitSystem to be used within NavigationController.

Link copied to clipboard
open override fun start()

Starts navigation without a Route. In this case navigation will just provide a MatchedLocation and LocationContext, therefore navigation will interact only with OnLocationMatchedListener and OnLocationContextUpdateListener.

open override fun start(navigationOptions: NavigationOptions)

Starts navigation with provided NavigationOptions. Navigation will go through all steps:

Link copied to clipboard
open override fun stop()

Stops current navigation session and clears data related to it. Calling this method will have no effect if start was not called previously.

Link copied to clipboard
open override fun unitSystem(): UnitSystemType

Returns the UnitSystem used within NavigationController.

Link copied to clipboard
open override fun update(routePlan: RoutePlan)

Updates the navigation session with a Route from a provided RoutePlan. If the navigation was started with a Route then this method will replace the current Route with the provided one. If the navigation was started without a Route then this method will start navigating on the provided Route.