public static final class IncidentsManager.IncidentRadiusOptions extends Object
| Constructor and Description |
|---|
IncidentRadiusOptions(GeoPoint center,
double radius)
Initializes a new instance of the
IncidentsManager.IncidentRadiusOptions class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
IncidentsManager.IncidentRadiusOptions |
setCenter(GeoPoint center)
Sets the center of the circular bounding area from 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.
|
IncidentsManager.IncidentRadiusOptions |
setRadius(double radius)
Sets the radius of the circular bounding area from which to return data.
|
T |
setSeverity(Integer[] severity)
Filters incident reports based on severity level.
|
String |
toString() |
public IncidentRadiusOptions(GeoPoint center, double radius)
IncidentsManager.IncidentRadiusOptions class.
The units for the radius is either meters or miles depending on what is set in UserPreferences.getSettingUnits(). The default units are set using UserPreferences.center - The center of the circular region from which to get the incidents.radius - The radius of the circular region.IncidentsManager.IncidentsManagerException - Thrown when center or radius is invalid.public IncidentsManager.IncidentRadiusOptions setCenter(GeoPoint center)
center - The center of the region.IncidentsManager.IncidentsManagerException - when center is invalid.public IncidentsManager.IncidentRadiusOptions setRadius(double radius)
radius - The radius of the bounding area, which must be a positive
integer. The units are set using UserPreferences.getSettingUnits().IncidentsManager.IncidentsManagerException - when radius 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.