RouteTrafficEvent

TrafficEvent object

Constructors

Link copied to clipboard
constructor()
constructor(address: Long)

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

Affected transport modes

Link copied to clipboard

Bounding box of the traffic event.

Link copied to clipboard
val delay: Int

Estimated delay in seconds caused by the traffic event. For roadblocks it will return -1.

Link copied to clipboard

Description of the traffic event.

Link copied to clipboard

Distance in meters from starting point on current route of the traffic event to the destination.

Link copied to clipboard

End time ( UTC )

Link copied to clipboard

Traffic event class.

Link copied to clipboard

Traffic event severity.

Link copied to clipboard

Route traffic event start point

Link copied to clipboard

Traffic event start point as landmark. If function returns successful but lmk is NULL information is not available. AsyncUpdateLandmarks must be called.

Link copied to clipboard
val image: Image?

Image of the traffic event. If the traffic event doesn't have an image the Image.isValid will return false

Link copied to clipboard
val length: Int

Length in meters of the road segment affected by the traffic event.

Link copied to clipboard

Traffic event preview URL

Link copied to clipboard

Traffic event reference point If the traffic event doesn't have a reference point the Coordinates.valid will return false

Link copied to clipboard

Start time ( UTC )

Link copied to clipboard

Route traffic event end point

Link copied to clipboard

Traffic event end point as landmark. If function returns successful but lmk is NULL information is not available. AsyncUpdateLandmarks must be called.

Functions

Link copied to clipboard
open external override fun affectedTransportMode(): Int

Gets affected transport modes

Link copied to clipboard
external fun asyncUpdateToFromData(listener: ProgressListener)

Updates the "from" and "to" landmarks.

Link copied to clipboard
open external override fun boundingBox(): RectangleGeographicArea?

Gets the bounding box of the traffic event.

Link copied to clipboard
open external override fun cancelGetPreviewData(listener: ProgressListener)

Cancel a previous call of getPreviewData

Link copied to clipboard
external fun cancelUpdate()

Cancel the update of "from" and "to" landmarks. The operation is synchronous, after it returns the update listener will not be used anymore

Link copied to clipboard
open external override fun delay(): Int

Gets the estimated delay in seconds caused by the traffic event. For roadblocks it will return -1.

Link copied to clipboard
open external override fun description(): String?

Gets the description of the traffic event.

Link copied to clipboard
open external override fun endTime(): Time?

Get end time ( UTC )

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard
open external override fun getPreviewData(params: GemList<Parameter>, listener: ProgressListener): Int

Get the traffic preview data as a list of parameters.

Link copied to clipboard
open external override fun hasOppositeSibling(): Boolean

Checks if event has a sibling on opposite direction

Link copied to clipboard
open external override fun image(): Image?

Gets the image of the traffic event. If the traffic event doesn't have an image the Image.isValid will return false

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
open external override fun isRoadblock(): Boolean

Returns true if this traffic event is a roadblock. For roadblocks the delay will return -1.

Link copied to clipboard
open external override fun isUserRoadblock(): Boolean

Return true if the traffic event is a user roadblock

Link copied to clipboard
open external override fun length(): Int

Gets the length in meters of the road segment affected by the traffic event.

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
open external override fun previewUrl(): String?

Returns the traffic event preview URL

Link copied to clipboard
open external override fun referencePoint(): Coordinates?

Returns the traffic event reference point If the traffic event doesn't have a reference point the Coordinates.valid will return false

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard
open external override fun startTime(): Time?

Get start time ( UTC )