Class TrafficIncidentsQueryOptions
Class TrafficIncidentsQueryOptions
- java.lang.Object
-
- com.here.sdk.traffic.TrafficIncidentsQueryOptions
-
public final class TrafficIncidentsQueryOptions extends java.lang.ObjectThe options to specify how incidents should be queried.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.DateearliestStartTimeThe earliest start time of incidents to be queried.java.util.List<TrafficIncidentImpact>impactFilterThe list of incident impacts to be queried.LanguageCodelanguageCodeThe language code of the query.java.util.DatelatestEndTimeThe latest end time of incidents to be queried.java.util.List<TrafficIncidentType>typeFilterThe list of incident types to be queried.
-
Constructor Summary
Constructors Constructor Description TrafficIncidentsQueryOptions()Creates a new instance with default values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()
-
-
-
Field Detail
-
typeFilter
@NonNull public java.util.List<TrafficIncidentType> typeFilter
The list of incident types to be queried. If the list is empty, all types will be queried.
-
impactFilter
@NonNull public java.util.List<TrafficIncidentImpact> impactFilter
The list of incident impacts to be queried. If the list is empty, all incident impacts will be queried.
-
earliestStartTime
@Nullable public java.util.Date earliestStartTime
The earliest start time of incidents to be queried. If the value is null filtering by the earliest start time is not applied.
-
latestEndTime
@Nullable public java.util.Date latestEndTime
The latest end time of incidents to be queried. If the value is null filtering by the latest end time is not applied.
-
languageCode
@Nullable public LanguageCode languageCode
The language code of the query. It's the expected language of fields
TrafficIncidentBase.getDescription()andTrafficIncident.getSummary()in the relevant response. However, the language code doesn't impact onTrafficLocation.description. If the language code is null or not supported then response fields are expected in the original language of the country that the incident belongs to.
-
-