RouteInstruction

public struct RouteInstruction

Route instruction.

Lifecycle

  • Init method to create route instruction object.

    Declaration

    Swift

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

    Parameters

    distanceAlongRouteMeters

    distance along route in meters unit.

    length

    length in Measurement unit length.

    combineWithNext

    should be combine with next instruction.

    pointIndex

    largest index in the polyline of the route.