Road

data class Road(val functionalRoadClass: Int, val isTunnel: Boolean, val isUnderpass: Boolean, val roadType: TypeOfRoad? = null, val isLeftHandDriving: Boolean? = null, val isBridge: Boolean = false, val tunnelName: String? = null, 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.

isTunnel

Indicates if the current location is in a tunnel. Not mutually exclusive with isBridge.

isUnderpass

Indicates if location is in underpass.

roadType

The type of the current road.

isLeftHandDriving

Indicates the driving side on the given road.

isBridge

Indicates if the current location is on a bridge. Not mutually exclusive with isTunnel.

tunnelName

The name of the tunnel at the current location. Null if not applicable (i.e. isTunnel is false) or not available. Not mutually exclusive with bridgeName.

bridgeName

The name of the bridge at the current location. Null if not applicable (i.e. isBridge is false) or not available. Not mutually exclusive with tunnelName.

Constructors

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

Properties

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