IncidentInfo

class IncidentInfo

Additional info of IncidentAlert.

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.

Types

Builder
Link copied to clipboard
class Builder(id: String)
Use to create a new instance.

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.
toBuilder
Link copied to clipboard
fun toBuilder(): IncidentInfo.Builder
Transform this object into a builder to mutate the values.
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.
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.
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.