LocationContext

class LocationContext(val speed: Speed?, val speedLimit: SpeedLimit? = null, val road: RoadProperties? = null, val address: Address? = 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.

Constructors

Link copied to clipboard
constructor(speed: Speed?, speedLimit: SpeedLimit? = null, road: RoadProperties? = null, address: Address? = null)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val address: Address? = null

The current address if available.

Link copied to clipboard
val road: RoadProperties? = null

The properties of the road at the current location , or null if the current location is off-road.

Link copied to clipboard
val speed: Speed?

The current speed or null if not known.

Link copied to clipboard
val speedLimit: SpeedLimit? = null

The speed limit at the current location, or null if the current location is off-road or speed limit on road is not available.