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: numberOfLanes: functionalRoadClass: formOfWay: roadCondition: drivingSide: isOverpass: isUnderpass: isDividedRoad: isTransitProhibited: isTollRoad: isUrbanArea: isComplexIntersection: isTunnel: tunnelName: isBridge: bridgeName: ) 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>, numberOfLanes: NumberOfLanes, functionalRoadClass: Int, formOfWay: FormOfWay?, roadCondition: RoadCondition?, drivingSide: DrivingSide, isOverpass: Bool = false, isUnderpass: Bool = false, isDividedRoad: Bool = false, isTransitProhibited: Bool = false, isTollRoad: Bool = false, isUrbanArea: Bool = false, isComplexIntersection: Bool = false, isTunnel: Bool = false, tunnelName: String? = nil, isBridge: Bool = false, bridgeName: String? = nil ) throwsParameters
idIdentifier of this element.
pathIDIdentifier of the path where this element belongs.
startOffsetStart offset on the path.
endOffsetEnd offset on the path.
numberOfLanesNumber of lanes on the road.
functionalRoadClassFunctional road class.
formOfWayForm of way. It describes the physical properties of the road.
roadConditionRoad condition. It describes the surface of the road.
drivingSideDriving side of the current road.
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.
isTunnelFlag that indicates whether the road is in a tunnel. True if the road is in a tunnel, false otherwise.
tunnelNameThe name of the tunnel or nil if not applicable (i.e.,
isTunnelis false) or not available.isBridgeFlag that indicates whether the road is on a bridge. True if the road is on a bridge, false otherwise.
bridgeNameThe name of the bridge or nil if not applicable (i.e.,
isBridgeis false) or not available.
-
Contains threshold values for the parameters used to initialize
GeneralRoadElements.See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum Constants -
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.
Declaration
Swift
public let numberOfLanes: NumberOfLanes -
Functional road class. The value is in the range [0..7] with 0 representing the most important functional road class. The higher the value the less important the road class.
Declaration
Swift
public let functionalRoadClass: Int -
Form of way. It describes the physical properties of the road.
Declaration
Swift
public let formOfWay: FormOfWay? -
Road condition. It describes the surface of the road.
Declaration
Swift
public let roadCondition: RoadCondition? -
Driving side of the current road.
Declaration
Swift
public let drivingSide: DrivingSide -
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 -
Flag that indicates whether the road is in a tunnel. True if the road is in a tunnel, false otherwise. It is not mutually exclusive with
isBridge.Declaration
Swift
public let isTunnel: Bool -
The name of the tunnel or nil if not applicable (i.e.,
isTunnelis false) or not available. It is not mutually exclusive withbridgeName.Declaration
Swift
public let tunnelName: String? -
Flag that indicates whether the road is on a bridge. True if the road is on a bridge, false otherwise. It is not mutually exclusive with
isTunnel.Declaration
Swift
public let isBridge: Bool -
The name of the bridge or nil if not applicable (i.e.,
isBridgeis false) or not available. It is not mutually exclusive withtunnelName.Declaration
Swift
public let bridgeName: String?
GeneralRoadElements Structure Reference