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 speedInMetersPerSecond: Double? = 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

speedInMetersPerSecond

The current speed in meters per second. Or null if not known.

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.

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,     speedInMetersPerSecond: Double? = null,     extras: String? = null,     roadType: TypeOfRoad? = null,     isLeftHandDriving: Boolean? = null)

Properties

Link copied to clipboard
val city: String
Link copied to clipboard
val country: String
Link copied to clipboard
val countryCode: String
Link copied to clipboard
val extras: String? = null
Link copied to clipboard
val functionalRoadClass: Int
Link copied to clipboard
val isLeftHandDriving: Boolean? = null
Link copied to clipboard
val isTunnel: Boolean
Link copied to clipboard
val isUnderpass: Boolean
Link copied to clipboard
val roadType: TypeOfRoad? = null
Link copied to clipboard
val speedInMetersPerSecond: Double? = null
Link copied to clipboard
val speedLimit: SpeedLimit
Link copied to clipboard
val streetName: String