public class TrafficIncident extends BaseTrafficIncident
Constructor and Description |
---|
TrafficIncident() |
Modifier and Type | Method and Description |
---|---|
void |
accept(TrafficIncidentVisitor visitor) |
protected void |
addAffectedRoadNumber(java.lang.String affectedRoadNumber) |
protected void |
addCoordinatesToGeometry(LatLng coordinates) |
ImmutableList<java.lang.String> |
getAffectedRoadNumbers()
Gets the road number(s) affected by the incident.
|
java.lang.String |
getCause()
Gets the cause of the incident, where available, in the language requested.
|
Optional<java.lang.Integer> |
getDelay()
Gets the delay caused by the incident in seconds (except in road closures).
|
java.lang.String |
getDescription()
Gets the description of the incident in the language requested.
|
java.lang.String |
getFrom()
Gets the name of the intersection or location where the traffic due to the incident starts.
|
ImmutableList<LatLng> |
getGeometry()
A collection of coordinates representing the geometry of the incident.
|
Optional<LatLng> |
getOriginalPosition()
Gets the point representing the actual position of the incident.
|
java.lang.String |
getTo()
Gets the name of the intersection or location where the traffic due to the incident ends.
|
protected void |
setDelay(int delay) |
protected void |
setOriginalPosition(LatLng originalPosition) |
getAdjustedPosition, getIconCategory, getId, getLengthMeters, getMagnitude, setIconCategory, setMagnitude
public Optional<LatLng> getOriginalPosition()
public java.lang.String getDescription()
public java.lang.String getCause()
public java.lang.String getFrom()
public java.lang.String getTo()
public Optional<java.lang.Integer> getDelay()
public ImmutableList<java.lang.String> getAffectedRoadNumbers()
public ImmutableList<LatLng> getGeometry()
public void accept(TrafficIncidentVisitor visitor)
protected void setOriginalPosition(LatLng originalPosition)
protected void setDelay(int delay)
protected void addAffectedRoadNumber(java.lang.String affectedRoadNumber)
protected void addCoordinatesToGeometry(LatLng coordinates)