RouteSnapshot

data class RouteSnapshot(val routePlan: RoutePlan, val projection: ProjectedRoute? = null, val numberOfVisitedWaypoints: Int = 0, val nextWaypoint: Waypoint? = null, val routeProgress: RouteProgress = RouteProgress(), val isFollowed: Boolean = true)

Snapshot of the current route.

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

Parameters

routePlan

Active RoutePlan.

projection

Projected route ProjectedRoute.

numberOfVisitedWaypoints

The number of waypoints already visited on the current route.

nextWaypoint

The Waypoint the user is currently navigating to, or null if the user is navigating directly to the destination.

routeProgress

Current progress along the route.

isFollowed

Indicates if the route is being followed.

Constructors

Link copied to clipboard
fun RouteSnapshot(routePlan: RoutePlan, projection: ProjectedRoute? = null, numberOfVisitedWaypoints: Int = 0, nextWaypoint: Waypoint? = null, routeProgress: RouteProgress = RouteProgress(), isFollowed: Boolean = true)

Properties

Link copied to clipboard
val isFollowed: Boolean = true
Link copied to clipboard
val nextWaypoint: Waypoint? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard