RouteInstruction

public struct RouteInstruction

Route instruction.

Lifecycle

  • Creates a route instruction object.

    Declaration

    Swift

    public init(
        distanceAlongRoute: Measurement<UnitLength>,
        length: Measurement<UnitLength>,
        combineWithNext: Bool,
        pointIndex: Int = 0
    )

    Parameters

    distanceAlongRoute

    Distance along the route.

    length

    length in Measurement unit length.

    combineWithNext

    should be combine with next instruction.

    pointIndex

    largest index in the polyline of the route.