open class TrafficIncident : BaseTrafficIncident
Contains details of a single traffic incident.
TrafficIncident()
Contains details of a single traffic incident. |
open fun accept(visitor: TrafficIncidentVisitor!): Unit |
|
open fun addAffectedRoadNumber(affectedRoadNumber: String!): Unit |
|
open fun addCoordinatesToGeometry(coordinates: LatLng!): Unit |
|
open fun getAffectedRoadNumbers(): ImmutableList<String!>!
Gets the road number(s) affected by the incident. |
|
open fun getCause(): String!
Gets the cause of the incident, where available, in the language requested. |
|
open fun getDelay(): Optional<Int!>!
Gets the delay caused by the incident in seconds (except in road closures). |
|
open fun getDescription(): String!
Gets the description of the incident in the language requested. |
|
open fun getFrom(): String!
Gets the name of the intersection or location where the traffic due to the incident starts. |
|
open fun getGeometry(): ImmutableList<LatLng!>!
A collection of coordinates representing the geometry of the incident. Not available for clusters and incidents that do not have a shape/length. |
|
open fun getOriginalPosition(): Optional<LatLng!>!
Gets the point representing the actual position of the incident. Only present if requested. |
|
open fun getTo(): String!
Gets the name of the intersection or location where the traffic due to the incident ends. |
|
open fun setDelay(delay: Int): Unit |
|
open fun setOriginalPosition(originalPosition: LatLng!): Unit |
open fun getAdjustedPosition(): LatLng!
Returns the point where an icon of the cluster or raw incident should be drawn. This is affected by traffic style, zoom level, and road type. |
|
open fun getIconCategory(): IncidentIconCategory!
Returns the icon category associated with this incident. |
|
open fun getId(): String!
Returns the ID of the traffic incident. |
|
open fun getLengthMeters(): Int
Returns the length of the incident in meters. |
|
open fun getMagnitude(): IncidentMagnitude!
Returns the magnitude of delay associated with this incident. |
|
open fun setIconCategory(iconCategory: Int): Unit |
|
open fun setMagnitude(magnitude: Int): Unit |