TrafficIncidentType (API Reference)
Package com.here.sdk.traffic
Enum Class TrafficIncidentType
- All Implemented Interfaces:
Serializable,Comparable<TrafficIncidentType>,Constable
Category of a traffic incident.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTraffic accident.Traffic congestion.Construction work.Overturned or broken down vehicle(s) on the road.Lane restriction.Incident involving mass transit such as rail or subway.The incident is known but it does't fit into any of the other categories.Incident involving activities such as sport events or festivals.Road closure.Dangerous obstruction on the road such as downed tree or traffic light out.The incident type is not provided by the traffic incidents supplier or not recognized by HERE SDK.Adverse weather conditions. -
Method Summary
Modifier and TypeMethodDescriptionstatic TrafficIncidentTypeReturns the enum constant of this class with the specified name.static TrafficIncidentType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACCIDENT
Traffic accident.
-
CONGESTION
Traffic congestion.
-
CONSTRUCTION
Construction work.
-
DISABLED_VEHICLE
Overturned or broken down vehicle(s) on the road.
-
MASS_TRANSIT
Incident involving mass transit such as rail or subway.
-
PLANNED_EVENT
Incident involving activities such as sport events or festivals.
-
ROAD_HAZARD
Dangerous obstruction on the road such as downed tree or traffic light out.
-
WEATHER
Adverse weather conditions.
-
ROAD_CLOSURE
Road closure.
-
LANE_RESTRICTION
Lane restriction.
-
OTHER
The incident is known but it does't fit into any of the other categories.
-
UNKNOWN
The incident type is not provided by the traffic incidents supplier or not recognized by HERE SDK.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-