NavigationSnapshot

data class NavigationSnapshot(    val trip: Trip,     val routes: List<Route>,     val routeCreationTime: Long,     val isGuidanceAvailable: Boolean,     val location: GeoLocation,     val mapMatchingResult: MapMatchingResult,     val locationContext: LocationContext,     val routeProgress: RouteProgress,     val hasRouteDeviated: Boolean,     val hasReachedDestination: Boolean,     val currentInstructionId: UniqueId? = null,     val proposedRoute: ReplannedRoute? = null,     val nextWaypoint: Waypoint? = null)

Read-only snapshot of the current navigation session.

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

Parameters

trip

Trip class contains an active RoutePlan, and a list of alternative RoutePlan

routes

List of routes.

routeCreationTime

Current route's creation timestamp.

isGuidanceAvailable

Indicator of guidance availability.

location

Current location.

mapMatchingResult

Current map-matching result.

routeProgress

Represents current progress along the route.

hasRouteDeviated

Indicator of route deviated.

hasReachedDestination

Indicates if the destination has been reached.

currentInstructionId

Current instruction object.

proposedRoute

Describes the route after replanning.

nextWaypoint

The Waypoint, which the user currently navigates to or null if none.

Constructors

Link copied to clipboard
fun NavigationSnapshot(    trip: Trip,     routes: List<Route>,     routeCreationTime: Long,     isGuidanceAvailable: Boolean,     location: GeoLocation,     mapMatchingResult: MapMatchingResult,     locationContext: LocationContext,     routeProgress: RouteProgress,     hasRouteDeviated: Boolean,     hasReachedDestination: Boolean,     currentInstructionId: UniqueId? = null,     proposedRoute: ReplannedRoute? = null,     nextWaypoint: Waypoint? = null)

Properties

Link copied to clipboard
val currentInstructionId: UniqueId? = null
Link copied to clipboard
val hasReachedDestination: Boolean
Link copied to clipboard
val hasRouteDeviated: Boolean
Link copied to clipboard
val isGuidanceAvailable: Boolean
Link copied to clipboard
val location: GeoLocation
Link copied to clipboard
val locationContext: LocationContext
Link copied to clipboard
val mapMatchingResult: MapMatchingResult
Link copied to clipboard
val nextWaypoint: Waypoint? = null
Link copied to clipboard
val proposedRoute: ReplannedRoute? = null
Link copied to clipboard
val routeCreationTime: Long
Link copied to clipboard
val routeProgress: RouteProgress
Link copied to clipboard
val routes: List<Route>
Link copied to clipboard
val trip: Trip