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.

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Indicates whether some other object is "equal to" this one.
hashCode
Link copied to clipboard
open override fun hashCode(): Int
Returns a hash code value for the object.
toString
Link copied to clipboard
open override fun toString(): String
Returns a string representation of the object.

Properties

alertcCodes
Link copied to clipboard
val alertcCodes: List<Int>?
alertC codes.
congestion
Link copied to clipboard
val congestion: IncidentCongestion?
quantitative descriptor of congestion.
countryCodeAlpha2
Link copied to clipboard
val countryCodeAlpha2: String?
ISO 3166-1, 2 letter country code.
countryCodeAlpha3
Link copied to clipboard
val countryCodeAlpha3: String?
ISO 3166-1, 3 letter country code.
creationTime
Link copied to clipboard
val creationTime: Date?
time the incident was created/updated in ISO8601 format.
description
Link copied to clipboard
val description: String?
human-readable description of the incident suitable for displaying to the users.
endTime
Link copied to clipboard
val endTime: Date?
end time of the incident in ISO8601 format.
id
Link copied to clipboard
val id: String
unique id of incident.
impact
Link copied to clipboard
val impact: String
the rate of incident.
isClosed
Link copied to clipboard
val isClosed: Boolean
true if road is closed and no possibility to pass through there.
lanesBlocked
Link copied to clipboard
val lanesBlocked: List<String>
lanes which are blocked.
lanesClearDesc
Link copied to clipboard
val lanesClearDesc: String?
describes which lanes are clear.
longDescription
Link copied to clipboard
val longDescription: String?
detailed description of the incident.
numLanesBlocked
Link copied to clipboard
val numLanesBlocked: Long?
number of lanes blocked.
startTime
Link copied to clipboard
val startTime: Date?
start time of the incident in ISO8601 format.
subType
Link copied to clipboard
val subType: String?
sub-type of the incident.
subTypeDescription
Link copied to clipboard
val subTypeDescription: String?
sub-type-specific description.
type
Link copied to clipboard
val type: Int
type of incident.