IncidentInfo

class IncidentInfo

Additional info of Incident.

Parameters

id

unique id of incident.

type

type of incident. For more information IncidentType.

impact

the rate of incident. For more information IncidentImpact.

congestion

quantitative descriptor of congestion.

isClosed

true if road is closed and no possibility to pass through there. False otherwise.

creationTime

time the incident was created/updated in ISO8601 format. The incident alert can be created/updated at a different time than its occurrence.

startTime

start time of the incident in ISO8601 format.

endTime

end time of the incident in ISO8601 format.

description

human-readable description of the incident suitable for displaying to the users.

subType

sub-type of the incident.

subTypeDescription

sub-type-specific description.

alertcCodes

alertC codes.

countryCodeAlpha2

ISO 3166-1, 2 letter country code.

countryCodeAlpha3

ISO 3166-1, 3 letter country code.

lanesBlocked

lanes which are blocked. Might be: LEFT, LEFT CENTER, LEFT TURN LANE, CENTER, RIGHT, RIGHT CENTER, RIGHT TURN LANE, HOV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, SIDE, SHOULDER, MEDIAN.

longDescription

detailed description of the incident.

lanesClearDesc

describes which lanes are clear. For Example:

  • one lane gets by

  • only shoulder gets by

  • two left lanes get by

numLanesBlocked

number of lanes blocked.

affectedRoadNames

affected road names.

Functions

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

Indicates whether some other object is "equal to" this one.

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

Returns a hash code value for the object.

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

Returns a string representation of the object.

Properties

Link copied to clipboard
val affectedRoadNames: List<String>?
Link copied to clipboard
val alertcCodes: List<Int>?
Link copied to clipboard
val congestion: IncidentCongestion?
Link copied to clipboard
val countryCodeAlpha2: String?
Link copied to clipboard
val countryCodeAlpha3: String?
Link copied to clipboard
val creationTime: Date?
Link copied to clipboard
val description: String?
Link copied to clipboard
val endTime: Date?
Link copied to clipboard
val id: String
Link copied to clipboard
val impact: String
Link copied to clipboard
val isClosed: Boolean
Link copied to clipboard
val lanesBlocked: List<String>
Link copied to clipboard
val lanesClearDesc: String?
Link copied to clipboard
val longDescription: String?
Link copied to clipboard
val numLanesBlocked: Long?
Link copied to clipboard
val startTime: Date?
Link copied to clipboard
val subType: String?
Link copied to clipboard
val subTypeDescription: String?
Link copied to clipboard
val type: Int