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.
-
Creates an instance of
LaneSectionwith the given parameters.Declaration
Swift
public init( sectionLocation: SectionLocation, routeOffset: Measurement<UnitLength>, length: Measurement<UnitLength>, lanes: [Lane] = [], laneSeparators: [LaneSeparator] = [] )Parameters
sectionLocationThe location of the section.
routeOffsetThe offset on the route where the section starts.
lengthThe length of the section.
lanesList of lanes in the section, ordered from left to right. Each contains a list of directions reachable from the lane, and optionally one recommended direction to follow.
laneSeparatorsList of lane separators in the section, 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.
-
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, 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 the section, 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]
TomTom SDK for iOS (0.53.1)
LaneSection