RoadAttributes
public struct RoadAttributes : Hashable
Road attributes, including usage and physical characteristics. Note that a road can have more than one attribute at the same time.
-
Indicates whether the navigable segment is paved. Paved is primarily used for map display and routing by assigning higher penalties to unpaved roads. Paved roads are made of concrete, asphalt, cobblestone or brick. Unpaved roads do not have a solid surface, e.g. are made of gravel, dirt or grass.
Declaration
Swift
public var isDirtRoad: Bool -
Identifies an enclosed (on all sides) passageway through or under an obstruction. This attribute can be used for display or route guidance.
Declaration
Swift
public var isTunnel: Bool -
Identifies a structure that allows a road, railway, or walkway to pass over another road, railway, waterway, or valley serving map display and route guidance functionalities. Bridge is published on segments that represent significant bridges and/or overpasses; elevated roads are not published as bridge.
Declaration
Swift
public var isBridge: Bool -
Range is a ramp: connects roads that do not intersect at grade. Ramp allows explication of maneuvers involving ramps (e.g., “Take the ramp”) and for route guidance when determining if sign text should be used.
Declaration
Swift
public var isRamp: Bool -
Controlled access roads are roads with limited entrances and exits that allow uninterrupted high-speed traffic flow. For example, the Interstate/Freeway network in the United States or the Motorway network in Europe. Controlled Access can be used for map display, avoidance of freeway/motorway, publishing speed limits, and route guidance timing.
Declaration
Swift
public var isControlledAccess: Bool -
Private identifies roads that are not maintained by an organization responsible for maintenance of public roads. Allows for unique cartographic representation of roads that restrict public use. May be used to avoid routing through a private road.
Declaration
Swift
public var isPrivate: Bool -
Identifies a no through road. This can also be a part of the route you can only enter or leave if it’s a waypoint.
Declaration
Swift
public var isNoThrough: Bool -
Identifies a road for which a fee must be paid to use the road. Tollway may be used for map display (e.g., different rendering of toll roads) and routing. Tollway is flagged on roads that require a fee for traversal.
Declaration
Swift
public var isTollway: Bool -
Indicates if there is a physical structure or painted road marking intended to legally prohibit left turns in right-side driving countries, right turns in left-side driving countries, and U-turns at divided intersections or in the middle of divided segments.
Declaration
Swift
public var isDividedRoad: Bool -
Indicates if vehicles have to drive on the right-hand side of the road or the left-hand side. For example, in New York it is always
trueand in London alwaysfalseas the United Kingdom is a left-hand driving country.Declaration
Swift
public var isRightDrivingSide: Bool -
Indicates the presence of a roundabout.
Declaration
Swift
public var isRoundabout: Bool -
Indicates if the navigable segment is a built up area.
Declaration
Swift
public var isBuiltUpArea: Bool -
init(isDirtRoad:isTunnel: isBridge: isRamp: isControlledAccess: isPrivate: isNoThrough: isTollway: isDividedRoad: isRightDrivingSide: isRoundabout: isBuiltUpArea: ) Creates a new instance.
Declaration
Swift
public init(isDirtRoad: Bool = false, isTunnel: Bool = false, isBridge: Bool = false, isRamp: Bool = false, isControlledAccess: Bool = false, isPrivate: Bool = false, isNoThrough: Bool = false, isTollway: Bool = false, isDividedRoad: Bool = false, isRightDrivingSide: Bool = false, isRoundabout: Bool = false, isBuiltUpArea: Bool = false)