LaneGuidance

public struct LaneGuidance

Contains information about lane guidance.

  • Initializes a lane guidance with the specified parameters.

    Declaration

    Swift

    public init(
        lanes: [Lane],
        laneSeparators: [LaneSeparator],
        routeOffset: Measurement<UnitLength>,
        length: Measurement<UnitLength>
    )

    Parameters

    lanes

    Lane information.

    laneSeparators

    Lane separators.

    routeOffset

    The distance from the start of the route to the start of the lanes.

    length

    Length of the lane section.

  • List of lanes in lane guidance, ordered from left to right. Each contains a list of directions reachable from the lane, and optionally one recommended direction to follow.

    Declaration

    Swift

    public let lanes: [Lane]
  • List of lane separators in lane guidance, ordered from left to right. Separators that are shared between adjacent lanes are only listed once. Therefore, there must be one more separator than the number of lanes.

    Declaration

    Swift

    public let laneSeparators: [LaneSeparator]
  • Distance from the start of the route to the start point of LaneGuidance.

    Declaration

    Swift

    public let routeOffset: Measurement<UnitLength>
  • Distance from the the start point to the end point of LaneGuidance.

    Declaration

    Swift

    public let length: Measurement<UnitLength>