RoadProperties
The properties of the road.
Important: This is a Public Preview API. It may be changed or removed at any time.
Parameters
Number of lanes on the road. Defaults to DEFAULT_NUMBER_OF_LANES.
Functional road class. The value is in the range MIN_FUNCTIONAL_ROAD_CLASS and MAX_FUNCTIONAL_ROAD_CLASS. A value of MIN_FUNCTIONAL_ROAD_CLASS represents the most important functional road class. The higher the value the less important the road class.
The type of the current road.
Road condition. It describes the surface of the road.
The driving side of the road.
Flag that indicates whether the road is on an overpass: true if on overpass, false otherwise.
Flag that indicates whether the road is in an underpass: true if in underpass, false otherwise.
Flag that indicates whether the road is divided: true if dual carriage, false if single carriage.
Flag that indicates whether transit on the road is prohibited: true if prohibited, false otherwise.
Flag that indicates whether the road requires a toll payment: true if toll required, false otherwise.
Flag that indicates whether the road is in a built up area: true if built up area, false otherwise.
Flag that indicates whether the road is part of a complex intersection: true if complex intersection, false otherwise.
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.
The name of the tunnel or null if not applicable (i.e. isTunnel is false) or not available. It is not mutually exclusive with bridgeName.
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.
The name of the bridge or null if not applicable (i.e. isBridge is false) or not available. It is not mutually exclusive with tunnelName.
Throws
if the value of numberOfLanes or functionalRoadClass is out of range.