Road

data class Road(val functionalRoadClass: Int, val isUnderpass: Boolean = false, val roadType: TypeOfRoad? = null, val drivingSide: DrivingSide? = null, val isTunnel: Boolean = false, val tunnelName: String? = null, val isBridge: Boolean = false, val bridgeName: String? = null)

Provides detailed information about the road.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

functionalRoadClass

The functional road class. Regular values are in range 0, 7, where lower numbers indicate more important, faster roads.

isUnderpass

Indicates if location is in underpass.

roadType

The type of the current road.

drivingSide

The driving side of the road.

isTunnel

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.

tunnelName

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.

isBridge

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.

bridgeName

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.

Constructors

Link copied to clipboard
constructor(functionalRoadClass: Int, isUnderpass: Boolean = false, roadType: TypeOfRoad? = null, drivingSide: DrivingSide? = null, isTunnel: Boolean = false, tunnelName: String? = null, isBridge: Boolean = false, bridgeName: String? = null)

Properties

Link copied to clipboard
val bridgeName: String? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val isBridge: Boolean = false
Link copied to clipboard
val isTunnel: Boolean = false
Link copied to clipboard
val isUnderpass: Boolean = false
Link copied to clipboard
val roadType: TypeOfRoad? = null
Link copied to clipboard
val tunnelName: String? = null