LaneSection

public struct LaneSection : Section

The LaneSection struct is used to describe lane information for a part of the route. It contains information regarding the lanes, lane separators, location, and length of the section.

Lifecycle

  • Creates an instance of LaneSection with the given parameters.

    Declaration

    Swift

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

    Parameters

    sectionLocation

    The location of the section.

    routeOffset

    The offset on the route where the section starts.

    length

    The length of the section.

    lanes

    List of lanes in the section.

    laneSeparators

    List of lane separators in the section.

Public

  • The location of the section.

    Declaration

    Swift

    public var sectionLocation: SectionLocation
  • The offset on the route from the route origin to the start of the section.

    Declaration

    Swift

    public var routeOffset: Measurement<UnitLength>
  • The length of the section.

    Declaration

    Swift

    public var length: Measurement<UnitLength>
  • List of lanes in the section.

    Declaration

    Swift

    public let lanes: [Lane]
  • List of lane separators in the section.

    Declaration

    Swift

    public let laneSeparators: [LaneSeparator]