InstructionProgress

public class InstructionProgress
extension InstructionProgress: Equatable
  • The index of the instruction in its containing Leg

    Declaration

    Swift

    public let instructionIndex: Int
  • The instruction object, the same as is contained in the Leg

    Declaration

    Swift

    public let instruction: Instruction
  • The distance along the leg’s path between the user and the instruction’s coordinates.

    May not be applicable in some cases e.g. if the currently relevant instruction is a “set out” instruction

    Declaration

    Swift

    public let distanceUntilInstruction: Distance?
  • The estimated time until the user reaches the instruction’s coordinates

    May not be applicable in some cases e.g. if the currently relevant instruction is a “set out” instruction

    Declaration

    Swift

    public let durationUntilInstruction: Duration?
  • Declaration

    Swift

    public static func == (lhs: InstructionProgress, rhs: InstructionProgress) -> Bool