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 - One or more incident types.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_IDIncidentsManager.INCIDENT_OUTPUT_FIELD_VERSIONIncidentsManager.INCIDENT_OUTPUT_FIELD_TYPEIncidentsManager.INCIDENT_OUTPUT_FIELD_SEVERITYIncidentsManager.INCIDENT_OUTPUT_FIELD_EVENT_CODEIncidentsManager.INCIDENT_OUTPUT_FIELD_LATLONGIncidentsManager.INCIDENT_OUTPUT_FIELD_IMPACTINGIncidentsManager.INCIDENT_OUTPUT_FIELD_START_TIMEIncidentsManager.INCIDENT_OUTPUT_FIELD_END_TIMEIncidentsManager.INCIDENT_OUTPUT_FIELD_DELAY_IMPACTIncidentsManager.INCIDENT_OUTPUT_FIELD_PARAMETERIZED_DESCRIPTIONIncidentsManager.INCIDENT_OUTPUT_FIELD_SHORT_DESCRIPTIONIncidentsManager.INCIDENT_OUTPUT_FIELD_FULL_DESCRIPTIONIncidentsManager.INCIDENT_OUTPUT_FIELD_HEAD_TAILpublic 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-2016 INRIX, Inc. All Rights Reserved.