InstructionProgress

data class InstructionProgress(instructionIndex: Int, instruction: Instruction, distanceUntilInstruction: Distance?, durationUntilInstruction: Duration?)

Properties

Link copied to clipboard
val distanceMetersUntilInstruction: Float?

The distance in meters along the leg's path between the user and the instruction's coordinates.

Link copied to clipboard
val distanceUntilInstruction: Distance?

The distance along the leg's path between the user and the instruction's coordinates.

Link copied to clipboard
val durationSecondsUntilInstruction: Int

The estimated seconds until the user reaches the instruction's coordinates

Link copied to clipboard
val durationUntilInstruction: Duration?

The estimated time until the user reaches the instruction's coordinates

Link copied to clipboard
val instruction: Instruction

The instruction object, the same as is contained in the Leg

Link copied to clipboard
val instructionIndex: Int

The index of the instruction in its containing Leg