Package-level declarations

Types

Link copied to clipboard
data class ActiveRoute(val routePlan: RoutePlan, val betterProposal: RoutePlan?)

ActiveRoute class contains an active RoutePlan, and a better proposal RoutePlan. Better proposal RoutePlan can be null.

Link copied to clipboard
data class NavigationConfiguration constructor(val context: Context, val apiKey: String, val locationProvider: LocationProvider, val routeReplanner: RouteReplanner, val mapMatchingEngine: MapMatchingEngine = LegacyMapMatchingEngineFactory.create(context), val horizonEngine: HorizonEngine? = null, val guidanceEngine: GuidanceEngine = GuidanceEngineFactory.createStaticGuidanceEngine( context, GuidanceEngineOptions() ), val routeTrackingEngine: RouteTrackingEngine = RouteTrackingEngineFactory.create(context), val routeProgressEngine: RouteProgressEngine = RouteProgressEngineFactory.create(), val routeProjectionEngine: RouteProjectionEngine? = null, val locationContextProviderEngine: LocationContextProviderEngine = LegacyLocationContextProviderEngineFactory.create(context), val arrivalDetectionEngine: ArrivalDetectionEngine = DefaultArrivalDetectionEngineFactory.create(), val routeReplanningEngine: RouteReplanningEngine = RouteReplanningEngineFactory.create(routeReplanner), val replanningRetryPolicy: ReplanningRetryPolicy = TomTomReplanningRetryPolicy(), val continuousReplanningMode: ContinuousReplanningMode = ContinuousReplanningMode.Manual, val deviationReplanningMode: DeviationReplanningMode = DeviationReplanningMode.Automatic, val maintainRoutesMode: MaintainRoutesMode = MaintainRoutesMode.ActiveRouteOnly, val apiPath: URI? = null, val apiKeyParamName: String? = null, val navigationProcessingThrottle: Duration = DEFAULT_LOCATION_UPDATE_THROTTLE, val telemetry: Telemetry? = null)

Configuration of the Navigation SDK.

Link copied to clipboard

Responsible for interacting with and customizing a navigation.

Link copied to clipboard
open class NavigationError

Represents an error raised when something went wrong in navigation.

Link copied to clipboard
data class NavigationHistorySnapshot(val visitedRouteCoordinates: List<RouteCoordinate>)

Navigation history is a structure containing info regarding the passed history of the route, such as visited polyline points (route coordinates).

Link copied to clipboard
data class NavigationOptions(val activeRoutePlan: RoutePlan)

NavigationOptions encapsulate options for starting navigation.

Link copied to clipboard
data class NavigationSnapshot(val activeRoute: ActiveRoute?, val alternativeRoutes: List<RoutePlan>, val routes: List<Route>, val isGuidanceAvailable: Boolean, val location: GeoLocation, val mapMatchingResult: MapMatchingResult, val locationContext: LocationContext, val routeProgress: RouteProgress, val history: NavigationHistorySnapshot, val hasRouteDeviated: Boolean, val hasReachedDestination: Boolean, val currentInstructionId: UniqueId?, val proposedRoute: ReplannedRoute?, val waypointSnapshot: NavigationWaypointSnapshot, val projectedRoutes: List<ProjectedRoute>, val vehicle: Vehicle?, val unitSystem: UnitSystem = UnitSystem.METRIC)

Read-only snapshot of the current navigation session.

Link copied to clipboard

Returned when an error occurred during initialization of the underlying services.

Link copied to clipboard
data class NavigationWaypointSnapshot(val nextWaypoint: Waypoint?, val numberOfVisitedWaypoints: Int)

Read-only snapshot of the waypoints in the current navigation session.

Link copied to clipboard

Used to inform caller about the arrival at the destination.

Link copied to clipboard

Used to inform caller about guidance.

Link copied to clipboard

Used to inform caller that a new horizon snapshot is available.

Link copied to clipboard

Used to inform caller about lane guidance.

Link copied to clipboard

Used to inform caller about detailed information in current location on road.

Link copied to clipboard

Used to inform caller that current location has been matched to the road.

Link copied to clipboard

Used to inform caller that new predictions has been generated.

Link copied to clipboard

Used to inform caller about errors during navigating. Can be registered with TomTomNavigation.addOnNavigationErrorListener.

Link copied to clipboard

Used to inform caller that navigation has been started.

Link copied to clipboard

Used to inform caller about progress on Route.

Link copied to clipboard

Used to inform caller about getting off the route.

Link copied to clipboard

Used to inform the caller that the set of routes in the navigation session. has changed. Can be registered with TomTomNavigation.addOnRoutesChangedListener.

Link copied to clipboard

Used to inform caller that the route has been updated.

Link copied to clipboard

Used to inform a caller that the waypoint has been visited.

Link copied to clipboard
Link copied to clipboard
data class RoutePlan(val route: Route, val routePlanningOptions: RoutePlanningOptions)

Options to specify all required parameters for a single navigation session.

Link copied to clipboard

Returned when an error occurred while updating the Route.

Link copied to clipboard

Specifies the reason for updating the current route.

Link copied to clipboard

Responsible for interacting with and customizing a navigation.

Link copied to clipboard
abstract class UnitSystemType

Defines types of UnitSystem handling.