GeneralRoadElements
public struct GeneralRoadElements : HorizonElement
Describes the general road properties on the horizon element.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Declaration
Swift
public let elementType: HorizonElementType
-
Declaration
Swift
public let id: UUID
-
Declaration
Swift
public let pathID: Int
-
Declaration
Swift
public let startOffset: Measurement<UnitLength>
-
Declaration
Swift
public let endOffset: Measurement<UnitLength>
-
Number of lanes on the road in the driving direction or null if the number of lanes is not known. If available, the value is in the range [0..15]. A value of 0 indicates that the vehicle is moving in the wrong direction on a one-way road. A value of 15 means 15 or more lanes. The value comprises both normal and exit lanes.
Declaration
Swift
public let numLanesDrivingDirection: Int?
-
Number of lanes on the road in the opposite direction or null if the number of lanes is not known. If available, the value is in the range [0..15]. A value of 0 indicates that the vehicle is moving on a one-way road. A value of 15 means 15 or more lanes. The value comprises both normal and exit lanes.
Declaration
Swift
public let numLanesOppositeDirection: Int?
-
Functional road class. The value is in the range [0..7] with 0 as the most important and higher values as less important.
Declaration
Swift
public let functionalRoadClass: Int?
-
Flag describing driving side.
Declaration
Swift
public let isRightHandDriving: Bool?
-
Enum value describing physical properties of the road.
Declaration
Swift
public let formOfWay: FormOfWayType?
-
Enum value describing the road surface.
Declaration
Swift
public let roadCondition: RoadConditionType?
-
Flag marking if the road is in a tunnel.
Declaration
Swift
public let tunnel: Bool?
-
Flag marking if the road is on a bridge.
Declaration
Swift
public let bridge: Bool?
-
Flag marking if the road is on an overpass.
Declaration
Swift
public let overpass: Bool?
-
Flag marking if the road is in an underpass.
Declaration
Swift
public let underpass: Bool?
-
Flag marking if the road is divided (single or dual carriageway).
Declaration
Swift
public let dividedRoad: Bool?
-
Flag marking if transit on the road is prohibited.
Declaration
Swift
public let transitProhibited: Bool?
-
Flag marking if the road requires a toll payment.
Declaration
Swift
public let tollRoad: Bool?
-
Flag marking if the road is in a built-up area.
Declaration
Swift
public let urbanArea: Bool?
-
Flag marking if the road is a part of a complex intersection.
Declaration
Swift
public let complexIntersection: Bool?
-
Enum value describing the administrative class of the road.
Declaration
Swift
public let adminRoadClass: AdminRoadClassType