TrafficInfo

open class TrafficInfo : BaseNativeParcelable

Class contains information about traffic on the route. It determines type of incident, delay, etc...

Constructors

Link copied to clipboard
open fun TrafficInfo(    severity: Int,     affectedArea: GeoBoundingBox,     id: Int,     distance: Int,     affectedLength: Int,     delay: Int)

Types

Link copied to clipboard
annotation class TrafficSeverity

Functions

Link copied to clipboard
open fun describeContents(): Int
For documentation, see android.os.Parcelable.
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun getAffectedArea(): GeoBoundingBox
Return the bounding box affecting this event.
Link copied to clipboard
open fun getAffectedLength(): Int
Returns the full length of the traffic event during tracking or the portion of the route affected by the traffic event during navigation.
Link copied to clipboard
open fun getDelay(): Long
Returns the time delay on route.
Link copied to clipboard
open fun getDistance(): Int
Returns the distance from the last callback position to the traffic event.
Link copied to clipboard
open fun getSeverity(): Int
Returns the severity of the traffic event, from "Normal" to "Blocking".
Link copied to clipboard
open fun getUniqueId(): Int
Returns the event unique id.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun isValidParcelable(): Boolean
If object after recreate from parcel contains all of reference like original object method return true.
Link copied to clipboard
open fun writeToParcel(dest: Parcel, flags: Int)
For documentation, see android.os.Parcelable.

Properties

Link copied to clipboard
val CREATOR: Parcelable.Creator<TrafficInfo>