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