RoadDescription
class RoadDescription : NSObject
Object aggregating information about road markup and road geometry.
-
Lanes on the road
Declaration
Swift
var lanes: [Lane] { get }
-
Index of the lane in lanes array where vehicle is located. -1 - lane is not determined
Declaration
Swift
var currentLaneIndex: Int { get }
-
Relative car position in the current lane (range
[0; 1]
). 0 - left markup line, 1 - right markup lineDeclaration
Swift
var relativePositionInLane: Float { get }
-
Position of the center of the current lane
Declaration
Swift
var currentLaneCenter: Float { get }
-
Width of the current lane in meters
Declaration
Swift
var currentLaneWidth: Float { get }