TrafficStatus

class TrafficStatus(val activeDataSource: TrafficDataSourceType? = null, val trafficDataAvailable: Boolean = false, val supportsArbitraryLocations: Boolean = false)

Representation of the current status of the traffic service in NavSDK.

Constructors

Link copied to clipboard
constructor(activeDataSource: TrafficDataSourceType? = null, trafficDataAvailable: Boolean = false, supportsArbitraryLocations: Boolean = false)

Properties

Link copied to clipboard

The type of the data source from which traffic data is currently exposed. This usually reflects the data source that was selected during TrafficService creation, but can change in case an RDS-TMC fallback data source was added.

Link copied to clipboard

True if the current data source supports querying traffic data on demand in arbitrary locations. If this return false, the traffic service should not be used to display the current traffic situation on the map, except for the offline fallback scenario.

Link copied to clipboard

True if the traffic service knows about the traffic situation in the vicinity of the current location.

Functions

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

Checks if this TrafficStatus object is structurally equal to another object.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for the object, which allows it to be used in hash-based collections.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the object.