LocationContext

data class LocationContext(val speedLimit: SpeedLimit, val streetName: String, val city: String, val country: String, val countryCode: String, val isTunnel: Boolean, val isUnderpass: Boolean, val functionalRoadClass: Int, val speed: Speed? = null, val extras: String? = null, val roadType: TypeOfRoad? = null, val isLeftHandDriving: Boolean? = null)

Provides detailed information about a current location on the road.

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

Parameters

speedLimit

The speed limit.

streetName

The street name.

city

The city.

country

The country.

countryCode

The 3-character ISO 3166-1 alpha-3 country code.

isTunnel

Indicates if location is in tunnel.

isUnderpass

Indicates if location is in underpass.

functionalRoadClass

The functional road class.

speed

The current speed or null if not known.

extras

The additional custom data.

roadType

The type of the current road.

isLeftHandDriving

Indicates the driving side on the given road.

Constructors

Link copied to clipboard
fun LocationContext(speedLimit: SpeedLimit, streetName: String, city: String, country: String, countryCode: String, isTunnel: Boolean, isUnderpass: Boolean, functionalRoadClass: Int, speed: Speed? = null, extras: String? = null, roadType: TypeOfRoad? = null, isLeftHandDriving: Boolean? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val extras: String? = null
Link copied to clipboard
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 speed: Speed? = null
Link copied to clipboard
Link copied to clipboard