TrafficIncidentPoi

data class TrafficIncidentPoi(    val descriptions: List<Description>,     val delay: Duration,     val roadType: RoadType?,     val leftHandTraffic: Boolean?,     val magnitude: Magnitude?,     val roadCoverage: RoadCoverage?,     val poiType: PoiType,     val clusterId: Int?,     val clusterSize: Int?,     val clustered: Int?,     val endDate: Date?,     val id: String?,     val communityAttributes: CommunityAttributes) : TrafficIncident

Describes the traffic incident poi.

Parameters

poiType

The beginning of incidents is described as PoiType.START. If the traffic incident has no geometry, it is described as PoiType.STANDALONE.

clusterId

If present, indicates the ID of the cluster.

clusterSize

The number of incidents within a cluster.

Constructors

Link copied to clipboard
fun TrafficIncidentPoi(    descriptions: List<Description>,     delay: Duration,     roadType: RoadType?,     leftHandTraffic: Boolean?,     magnitude: Magnitude?,     roadCoverage: RoadCoverage?,     poiType: PoiType,     clusterId: Int?,     clusterSize: Int?,     clustered: Int?,     endDate: Date?,     id: String?,     communityAttributes: CommunityAttributes)

Properties

Link copied to clipboard
open override val clustered: Int?

The ID of the parent cluster. Presence indicates whether the incident is clustered.

Link copied to clipboard
val clusterId: Int?
Link copied to clipboard
val clusterSize: Int?
Link copied to clipboard
open override val communityAttributes: CommunityAttributes

Specifies user reported attributes associated with the TrafficIncident.

Link copied to clipboard
open override val delay: Duration

The delay caused by the incident (except in road closures - in this case no delay provided). It is calculated against free-flow travel time (the travel time when the traffic is minimal, e.g., night traffic).

Link copied to clipboard
open override val descriptions: List<Description>

A description of the incident with the corresponding icon category and cause. Clustering - the idea of clustering is a grouping of all overlapping incidents. If all incidents in the cluster belong to the same type, it will return the incident's type icon. Otherwise, it will return the cluster icon.

Link copied to clipboard
open override val endDate: Date?

Estimated end date of the incident, when available.

Link copied to clipboard
open override val id: String?

The ID of the traffic incident.

Link copied to clipboard
open override val leftHandTraffic: Boolean?

Indicates if the road has left-hand traffic.

Link copied to clipboard
open override val magnitude: Magnitude?

The Magnitude of delay associated with the incident.

Link copied to clipboard
val poiType: PoiType
Link copied to clipboard
open override val roadCoverage: RoadCoverage?

Describes if the traffic is assigned to the whole road (one way road), or only to one side (two-way road).

Link copied to clipboard
open override val roadType: RoadType?

Describes the RoadType.