Road

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

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.