NavigationInfo

A snapshot of the navigation progress at a given user position.

Properties

Link copied to clipboard
val leg: Leg

The leg the user is currently on.

Link copied to clipboard

The next step the user is heading towards, or null if the user is on the last coordinate.

Link copied to clipboard

The step the user has just passed, or null if the user is on the first coordinate.

Link copied to clipboard

The projection of the user position onto the itinerary.

Link copied to clipboard

The distance remaining until the destination, in meters.

Link copied to clipboard

The distance remaining until the next step, in meters, or null if it cannot be computed.

Link copied to clipboard

The time remaining until the destination, in seconds.

Link copied to clipboard

The distance traveled so far, in meters.

Functions

Link copied to clipboard
open override fun toCompactString(): String

Returns a compact, human-readable representation of this value.

Link copied to clipboard
open override fun toString(): String

Returns the progress distances and time, without leg, projection or the surrounding steps.