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.-
init(id:pathID: startOffset: endOffset: numLanesDrivingDirection: numLanesOppositeDirection: functionalRoadClass: formOfWay: roadCondition: isRightHandDriving: isTunnel: isBridge: isOverpass: isUnderpass: isDividedRoad: isTransitProhibited: isTollRoad: isUrbanArea: isComplexIntersection: ) Initializes
GeneralRoadElements.Important
This is a Public Preview API. It may be changed or removed at any time.
Declaration
Swift
public init( id: Int, pathID: Int, startOffset: Measurement<UnitLength>, endOffset: Measurement<UnitLength>, numLanesDrivingDirection: Int?, numLanesOppositeDirection: Int?, functionalRoadClass: Int, formOfWay: FormOfWayType?, roadCondition: RoadConditionType?, isRightHandDriving: Bool, isTunnel: Bool, isBridge: Bool, isOverpass: Bool, isUnderpass: Bool, isDividedRoad: Bool, isTransitProhibited: Bool, isTollRoad: Bool, isUrbanArea: Bool, isComplexIntersection: Bool )Parameters
idIdentifier of this element.
pathIDIdentifier of the path where this element belongs.
startOffsetStart offset on the path.
endOffsetEnd offset on the path.
numLanesDrivingDirectionNumber 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.
numLanesOppositeDirectionNumber 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.
functionalRoadClassFunctional road class.
formOfWayForm of way. It describes the physical properties of the road.
roadConditionRoad condition. It describes the surface of the road.
isRightHandDrivingFlag that indicates the driving side: true if right hand driving, false otherwise.
isTunnelFlag that indicates whether the road is in a tunnel: true if in a tunnel, false otherwise.
isBridgeFlag that indicates whether the road is on a bridge: true if on a bridge, false otherwise.
isOverpassFlag that indicates whether the road is on an overpass: true if on an overpass, false otherwise.
isUnderpassFlag that indicates whether the road is in an underpass: true if in an underpass, false otherwise.
isDividedRoadFlag that indicates whether the road is divided: true if dual carriage, false if single carriage.
isTransitProhibitedFlag that indicates whether transit on the road is prohibited: true if prohibited, false otherwise.
isTollRoadFlag that indicates whether the road requires a toll payment: true if toll is required, false otherwise.
isUrbanAreaFlag that indicates whether the road is in a built-up area: true if in a built-up area, false otherwise.
isComplexIntersectionFlag that indicates whether the road is part of a complex intersection: true if part of a complex intersection, false otherwise.
-
Declaration
Swift
public let elementType: HorizonElementType -
Declaration
Swift
public let id: Int -
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.
Declaration
Swift
public let functionalRoadClass: Int -
Form of way. It describes the physical properties of the road.
Declaration
Swift
public let formOfWay: FormOfWayType? -
Road condition. It describes the surface of the road.
Declaration
Swift
public let roadCondition: RoadConditionType? -
Flag that indicates the driving side: true if right hand driving, false otherwise.
Declaration
Swift
public let isRightHandDriving: Bool -
Flag that indicates whether the road is in a tunnel: true if in a tunnel, false otherwise.
Declaration
Swift
public let isTunnel: Bool -
Flag that indicates whether the road is on a bridge: true if on a bridge, false otherwise.
Declaration
Swift
public let isBridge: Bool -
Flag that indicates whether the road is on an overpass: true if on an overpass, false otherwise.
Declaration
Swift
public let isOverpass: Bool -
Flag that indicates whether the road is in an underpass: true if in an underpass, false otherwise.
Declaration
Swift
public let isUnderpass: Bool -
Flag that indicates whether the road is divided: true if dual carriage, false if single carriage.
Declaration
Swift
public let isDividedRoad: Bool -
Flag that indicates whether transit on the road is prohibited: true if prohibited, false otherwise.
Declaration
Swift
public let isTransitProhibited: Bool -
Flag that indicates whether the road requires a toll payment: true if toll is required, false otherwise.
Declaration
Swift
public let isTollRoad: Bool -
Flag that indicates whether the road is in a built-up area: true if in a built-up area, false otherwise.
Declaration
Swift
public let isUrbanArea: Bool -
Flag that indicates whether the road is part of a complex intersection: true if part of a complex intersection, false otherwise.
Declaration
Swift
public let isComplexIntersection: Bool
GeneralRoadElements Structure Reference