Enum Class TrafficIncidentType

java.lang.Object
java.lang.Enum<TrafficIncidentType>
com.here.sdk.traffic.TrafficIncidentType
All Implemented Interfaces:
Serializable, Comparable<TrafficIncidentType>, Constable

public enum TrafficIncidentType extends Enum<TrafficIncidentType>

Category of a traffic incident.

  • Enum Constant Details

    • ACCIDENT

      public static final TrafficIncidentType ACCIDENT

      Traffic accident.

    • CONGESTION

      public static final TrafficIncidentType CONGESTION

      Traffic congestion.

    • CONSTRUCTION

      public static final TrafficIncidentType CONSTRUCTION

      Construction work.

    • DISABLED_VEHICLE

      public static final TrafficIncidentType DISABLED_VEHICLE

      Overturned or broken down vehicle(s) on the road.

    • MASS_TRANSIT

      public static final TrafficIncidentType MASS_TRANSIT

      Incident involving mass transit such as rail or subway.

    • PLANNED_EVENT

      public static final TrafficIncidentType PLANNED_EVENT

      Incident involving activities such as sport events or festivals.

    • ROAD_HAZARD

      public static final TrafficIncidentType ROAD_HAZARD

      Dangerous obstruction on the road such as downed tree or traffic light out.

    • WEATHER

      public static final TrafficIncidentType WEATHER

      Adverse weather conditions.

    • ROAD_CLOSURE

      public static final TrafficIncidentType ROAD_CLOSURE

      Road closure.

    • LANE_RESTRICTION

      public static final TrafficIncidentType LANE_RESTRICTION

      Lane restriction.

    • OTHER

      public static final TrafficIncidentType OTHER

      The incident is known but it does't fit into any of the other categories.

    • UNKNOWN

      public static final TrafficIncidentType UNKNOWN

      The incident type is not provided by the traffic incidents supplier or not recognized by HERE SDK.

  • Method Details

    • values

      public static TrafficIncidentType[] 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

      public static TrafficIncidentType valueOf(String name)
      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 name
      NullPointerException - if the argument is null