TrafficEvent

TrafficEvent object

Inheritors

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

End time ( UTC )

Link copied to clipboard

Traffic event class.

Link copied to clipboard

Traffic event severity.

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 )

Functions

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

Gets affected transport modes

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

Gets the bounding box of the traffic event.

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

Cancel a previous call of getPreviewData

Link copied to clipboard
open external 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 fun description(): String?

Gets the description of the traffic event.

Link copied to clipboard
open external 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 fun getPreviewData(params: GemList<Parameter>, listener: ProgressListener): Int

Get the traffic preview data as a list of parameters.

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

Checks if event has a sibling on opposite direction

Link copied to clipboard
open external 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 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 fun isUserRoadblock(): Boolean

Return true if the traffic event is a user roadblock

Link copied to clipboard
open external 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 fun previewUrl(): String?

Returns the traffic event preview URL

Link copied to clipboard
open external 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 fun startTime(): Time?

Get start time ( UTC )