Class TrafficIncident

    • Method Detail

      • getId

        @NonNull
        public java.lang.String getId()

        Gets the unique current identifier for a traffic incident.

        Returns:

        The unique current identifier for a traffic incident.

      • getParentId

        @Nullable
        public java.lang.String getParentId()

        Gets the identifier of another incident to which this incident is linked.

        The value is null if the incident doesn't have a parent.

        Returns:

        The identifier of another incident to which this incident is linked.

      • getJunctionsTraversability

        @NonNull
        public JunctionsTraversability getJunctionsTraversability()

        Gets the traversability of junctions along the affected road.

        Returns:

        The traversability of junctions along the affected road.

      • isRoadClosed

        public boolean isRoadClosed()

        Gets the flag indicating whether road is closed or not.

        Returns:

        The flag indicates whether road is closed or not.

      • getCodes

        @NonNull
        public java.util.List<java.lang.Integer> getCodes()

        Gets the list of standardized codes as categorized in ISO 14819-2:2013 standard for this incident category.

        Codes are given in order of importance, so the first item in the list is considered the primary cause of the incident.

        Returns:

        The list of standardized codes as categorized in ISO 14819-2:2013 standard for this incident category.

      • getEntryTime

        @Nullable
        public java.util.Date getEntryTime()

        Gets the time the incident was entered into the system.

        The value is null if it hasn't been provided by the traffic incidents supplier.

        Returns:

        The time the incident was entered into the system.

      • getLocation

        @NonNull
        public TrafficLocation getLocation()

        Gets the location of the incident.

        Returns:

        The location of the incident.

      • getVehicleRestrictions

        @NonNull
        public java.util.Map<TrafficIncident.RestrictedVehicleCategory,​TrafficIncident.VehicleRestriction> getVehicleRestrictions()

        Gets the map of restricted vehicle categories to restrictions.

        A vehicle is restricted if at least one restriction field is applicable for it. If the map is empty, there're no restricted vehicles for the incident.

        Returns:

        The map of restricted vehicle categories to restrictions.

      • getDescription

        @NonNull
        public 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 the TrafficEngine.

        Specified by:
        getDescription in interface TrafficIncidentBase
        Returns:

        The human readable description of the incident, possibly with location information.

      • getStartTime

        @Nullable
        public 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 null if it hasn't been provided by the traffic incidents supplier.

        Specified by:
        getStartTime in interface TrafficIncidentBase
        Returns:

        The time from which the incident is valid, before this time the incident should not be considered.

      • getEndTime

        @Nullable
        public 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 null if it hasn't been provided by the traffic incidents supplier.

        Specified by:
        getEndTime in interface TrafficIncidentBase
        Returns:

        The time until which the incident is valid, after this time the incident should not be considered.