RouteProgress

data class RouteProgress

Constructors

Link copied to clipboard
fun RouteProgress(route: Route, legProgress: LegProgress?, isArrived: Boolean, navigationSessionId: String?, pathGeometrySegments: PathGeometrySegments)

Properties

Link copied to clipboard
val distanceMetersRemaining: Double?
Link copied to clipboard
val distanceRemaining: Distance?
Link copied to clipboard
val durationRemaining: Duration?
Link copied to clipboard
val durationSecondsRemaining: Int?
Link copied to clipboard
val isArrived: Boolean

If true, the route has been completed by the user. The SDK will provide no further guidance events.

Link copied to clipboard
val isNavigating: Boolean

true if this RouteProgress represent the state of the active navigation session.

Link copied to clipboard
val legProgress: LegProgress?

Progress along the leg of the route that the user is currently on. May be null in cases where we do not yet have a confident prediction of the user's current location

Link copied to clipboard
val navigationSessionId: String?

An internal identifier representing the active navigation session (if this RouteProgress represents the state of the active navigation).

Link copied to clipboard
val pathGeometrySegments: PathGeometrySegments

The path geometry of the route broken down in to segments of the same travel mode and progress type (past or future) for easier rendering.

Link copied to clipboard
val route: Route

The entire route the user is currently travelling along