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.

Public

  • Declaration

    Swift

    public let elementType: HorizonElementType
  • id

    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 tunnel, false otherwise.

    Declaration

    Swift

    public let tunnel: Bool
  • Flag that indicates whether the road is on a bridge: true if on bridge, false otherwise.

    Declaration

    Swift

    public let bridge: Bool
  • Flag that indicates whether the road is on an overpass: true if on overpass, false otherwise.

    Declaration

    Swift

    public let overpass: Bool
  • Flag that indicates whether the road is in an underpass: true if in underpass, false otherwise.

    Declaration

    Swift

    public let underpass: Bool
  • Flag that indicates whether the road is divided: true if dual carriage, false if single carriage.

    Declaration

    Swift

    public let dividedRoad: Bool
  • Flag that indicates whether transit on the road is prohibited: true if prohibited, false otherwise.

    Declaration

    Swift

    public let transitProhibited: Bool
  • Flag that indicates whether the road requires a toll payment: true if toll required, false otherwise.

    Declaration

    Swift

    public let tollRoad: Bool
  • Flag that indicates whether the road is in a built up area: true if built up area, false otherwise.

    Declaration

    Swift

    public let urbanArea: Bool
  • Flag that indicates whether the road is part of a complex intersection: true if complex intersection, false otherwise.

    Declaration

    Swift

    public let complexIntersection: Bool