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
- 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.