Interface TrafficIncidentBase
Interface TrafficIncidentBase
-
- All Known Implementing Classes:
PickMapContentResult.TrafficIncidentResult,TrafficIncident,TrafficIncidentOnRoute
public interface TrafficIncidentBaseTrafficIncident provides details about a traffic incident.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LocalizedTextgetDescription()Gets the human readable description of the incident, possibly with location information.java.util.DategetEndTime()Get the time until which the incident is valid, after this time the incident should not be considered.TrafficIncidentImpactgetImpact()Gets the impact of the incident.java.util.DategetStartTime()Gets the time from which the incident is valid, before this time the incident should not be considered.TrafficIncidentTypegetType()Gets the category of the incident.
-
-
-
Method Detail
-
getImpact
@NonNull TrafficIncidentImpact getImpact()
Gets the impact of the incident.
The value is
TrafficIncidentImpact.UNKNOWNif it hasn't been provided by the traffic incidents supplier.- Returns:
The impact of the incident.
-
getType
@NonNull TrafficIncidentType getType()
Gets the category of the incident.
The value is
TrafficIncidentType.UNKNOWNif it hasn't been provided by the traffic incidents supplier.- Returns:
The category of the incident.
-
getDescription
@NonNull LocalizedText getDescription()
Gets the human readable description of the incident, possibly with location information.
The description is currently not present in our map data. Therefore, when accessing the data from a picked carto POI via
TrafficIncidentResult, then always an empty string is returned. This does not apply when using theTrafficEngine.- Returns:
The human readable description of the incident, possibly with location information.
-
getStartTime
@Nullable java.util.Date getStartTime()
Gets the time from which the incident is valid, before this time the incident should not be considered.
The value is
nullif it hasn't been provided by the traffic incidents supplier.- Returns:
The time from which the incident is valid, before this time the incident should not be considered.
-
getEndTime
@Nullable java.util.Date getEndTime()
Get the time until which the incident is valid, after this time the incident should not be considered.
The value is
nullif it hasn't been provided by the traffic incidents supplier.- Returns:
The time until which the incident is valid, after this time the incident should not be considered.
-
-