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.

Lifecycle

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

    length

    Length of the lane section in meters.

Public

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

    Declaration

    Swift

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

    Declaration

    Swift

    public let length: Measurement<UnitLength>