TrafficInfo

open class TrafficInfo : BaseNativeParcelable

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

Constructors

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

Types

TrafficSeverity
Link copied to clipboard
annotation class TrafficSeverity

Functions

describeContents
Link copied to clipboard
abstract fun describeContents(): Int
open fun describeContents(): Int
For documentation, see android.os.Parcelable.
equals
Link copied to clipboard
open fun equals(o: Any): Boolean
getAffectedArea
Link copied to clipboard
open fun getAffectedArea(): GeoBoundingBox
Return the bounding box affecting this event.
getAffectedLength
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.
getDelay
Link copied to clipboard
open fun getDelay(): Long
Returns the time delay on route.
getDistance
Link copied to clipboard
open fun getDistance(): Int
Returns the distance from the last callback position to the traffic event.
getSeverity
Link copied to clipboard
open fun getSeverity(): Int
Returns the severity of the traffic event, from "Normal" to "Blocking".
getUniqueId
Link copied to clipboard
open fun getUniqueId(): String
Returns the event unique id.
hashCode
Link copied to clipboard
open fun hashCode(): Int
isValidParcelable
Link copied to clipboard
open fun isValidParcelable(): Boolean
If object after recreate from parcel contains all of reference like original object method returntrue.
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p: Parcel, p1: Int)
open fun writeToParcel(dest: Parcel, flags: Int)
For documentation, see android.os.Parcelable.

Properties

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