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)
Content copied to clipboard
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)
Content copied to clipboard