LegProgress

public class LegProgress
extension LegProgress: Equatable
  • The index of the leg in the route the user is currently on

    Declaration

    Swift

    public let legIndex: Int
  • leg

    The leg object at legIndex in the active Route

    Declaration

    Swift

    public let leg: Leg
  • The distance remaining along the current leg’s path

    Declaration

    Swift

    public let distanceMetersRemaining: Float
  • The estimated duration until reaching the end of the current leg

    Declaration

    Swift

    public let durationRemaining: Duration?
  • The fraction travelled so far along the entire distance of the current leg’s path

    Declaration

    Swift

    public let fractionAlongLegDistance: Float
  • Progress towards the upcoming instruction on the current leg

    Declaration

    Swift

    public let nextInstructionProgress: InstructionProgress?
  • A convenience property for getting the list of remaining instructions in this leg beyond the upcoming one. This might be used e.g. in an expanded UI after interacting with the upcoming instruction view, displaying the list of all incomplete instructions

    Declaration

    Swift

    public var remainingInstructionsAfterNext: [InstructionSegment]? { get }
  • The estimated seconds until reaching the end of the current leg

    Declaration

    Swift

    public var durationSecondsRemaining: Int? { get }
  • Declaration

    Swift

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