RouteInstruction

public struct RouteInstruction

Route instruction.

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

  • Init method to create route instruction object.

    Declaration

    Swift

    public init(distanceAlongRouteMeters: Double, lengthInMeters: Double, combineWithNext: Bool, pointIndex: Int = 0)

    Parameters

    distanceAlongRouteMeters

    distance along route in meters unit.

    lengthInMeters

    length in meters unit.

    combineWithNext

    should be combine with next instruction.

    pointIndex

    largest index in the polyline of the route.