public static final class IncidentsManager.IncidentBoxOptions extends Object
Constructor and Description |
---|
IncidentBoxOptions(GeoPoint corner1,
GeoPoint corner2)
Initializes a new instance of the
IncidentsManager.IncidentBoxOptions . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
GeoPoint |
getCorner1()
Gets corner 1 of the bounding box.
|
GeoPoint |
getCorner2()
Gets the second corner of the bounding box.
|
int |
hashCode() |
IncidentsManager.IncidentBoxOptions |
setCorner1(GeoPoint corner1)
Sets the first corner of the bounding rectangle.
|
IncidentsManager.IncidentBoxOptions |
setCorner2(GeoPoint corner2)
Sets the second corner of the region in which to get data.
|
T |
setIncidentSource(int incidentSource)
Sets the requested source of the incidents.
|
T |
setIncidentType(int incidentType)
Sets the type of incidents to be returned.
|
T |
setOutputFields(int value)
Sets the output fields of the incident.
|
T |
setSeverity(Integer[] severity)
Filters incident reports based on severity level.
|
String |
toString() |
public IncidentBoxOptions(GeoPoint corner1, GeoPoint corner2)
IncidentsManager.IncidentBoxOptions
.corner1
- First corner of the bounding rectangle that contains the
incidents to return. The corner
specified by the corner1 parameter can be any of the four
corners of the bounding rectangle.corner2
- The second corner of the region in which to get data. The
corner2 parameter is diagonally opposite of corner1.IncidentsManager.IncidentsManagerException
- Thrown when corner1
or corner2
is invalid.public GeoPoint getCorner1()
public IncidentsManager.IncidentBoxOptions setCorner1(GeoPoint corner1)
corner1
- The first corner of the bounding box.IncidentsManager.IncidentsManagerException
- when corner1 is invalid.public GeoPoint getCorner2()
public IncidentsManager.IncidentBoxOptions setCorner2(GeoPoint corner2)
corner2
- The second corner of the bounding box.IncidentsManager.IncidentsManagerException
- when corner2 is invalid.public T setIncidentType(int incidentType)
IncidentsManager.INCIDENT_RESULT_TYPE_ALL
). Multiple types
can be specified by using the "or" operator.incidentType
- Incident type. Can be IncidentsManager.INCIDENT_RESULT_TYPE_ALL
or any combination of the following:
IncidentsManager.INCIDENT_RESULT_TYPE_INCIDENTS
IncidentsManager.INCIDENT_RESULT_TYPE_CONSTRUCTION
IncidentsManager.INCIDENT_RESULT_TYPE_EVENTS
IncidentsManager.INCIDENT_RESULT_TYPE_CONGESTION
IncidentsManager.INCIDENT_RESULT_TYPE_POLICE
IncidentsManager.INCIDENT_RESULT_TYPE_HAZARD
IncidentsManager.INCIDENT_RESULT_TYPE_ROAD_CLOSURE
public T setIncidentSource(int incidentSource)
IncidentsManager.INCIDENT_SOURCE_INRIXONLY
specifies that incidents are compiled from non-commercial sources, such as flow incidents that are generated programmatically from Inrix traffic information or planned construction incidents. A value of
IncidentsManager.INCIDENT_SOURCE_COMMUNITY
specifies that incidents come from community sources, such as incidents submitted through mobile devices. The default is IncidentsManager.INCIDENT_SOURCE_ALL
. *incidentSource
- The source of the incident information.public T setOutputFields(int value)
value
- Output fields. Can be IncidentsManager.INCIDENT_OUTPUT_FIELD_ALL
or any combination of the following:
IncidentsManager.INCIDENT_OUTPUT_FIELD_ID
IncidentsManager.INCIDENT_OUTPUT_FIELD_VERSION
IncidentsManager.INCIDENT_OUTPUT_FIELD_TYPE
IncidentsManager.INCIDENT_OUTPUT_FIELD_SEVERITY
IncidentsManager.INCIDENT_OUTPUT_FIELD_EVENT_CODE
IncidentsManager.INCIDENT_OUTPUT_FIELD_LATLONG
IncidentsManager.INCIDENT_OUTPUT_FIELD_IMPACTING
IncidentsManager.INCIDENT_OUTPUT_FIELD_START_TIME
IncidentsManager.INCIDENT_OUTPUT_FIELD_END_TIME
IncidentsManager.INCIDENT_OUTPUT_FIELD_DELAY_IMPACT
IncidentsManager.INCIDENT_OUTPUT_FIELD_PARAMETERIZED_DESCRIPTION
IncidentsManager.INCIDENT_OUTPUT_FIELD_SHORT_DESCRIPTION
IncidentsManager.INCIDENT_OUTPUT_FIELD_FULL_DESCRIPTION
IncidentsManager.INCIDENT_OUTPUT_FIELD_HEAD_TAIL
public T setSeverity(Integer[] severity)
IncidentsManager.INCIDENT_SEVERITY_0
- IncidentsManager.INCIDENT_SEVERITY_4
, with IncidentsManager.INCIDENT_SEVERITY_4
indicating the highest severity. Multiple severity values can
be specified. All severities are returned by default.severity
- The set of incident severities.IncidentsManager.IncidentsManagerException
- when severity is invalid.Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.