LaneGuidance

public struct LaneGuidance

Contains information about lane guidance.

Lanes are stored in order from curb side to middle side. That is, in left-hand driving locales such as Japan, the lanes are ordered from left to right, while in right-hand driving locales such as the USA, the lanes are ordered from right to left.

  • 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.

  • An array of lane information.

    Declaration

    Swift

    public let lanes: [Lane]
  • An array of lane separators.

    Declaration

    Swift

    public let laneSeparators: [LaneSeparator]
  • The distance from the start of the route to the start of the lanes.

    Declaration

    Swift

    public let routeOffset: Measurement<UnitLength>
  • Length of the lane section.

    Declaration

    Swift

    public let length: Measurement<UnitLength>