RoadUsages Structure Reference
- Last UpdatedJun 10, 2025
- 1 minute read
public struct RoadUsages : Hashable
Road Usages of the segment.
Note a road can have more than one attribute at the same time.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
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
-
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
-
Creates a new instance with default values.
Declaration
Swift
public init(isRamp: Bool = false, isControlledAccess: Bool = false, isTollway: Bool = false)