public class IncidentsManager extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
IncidentsManager.IIncidentDeleteListener
The listener for deleting incidents.
|
static interface |
IncidentsManager.IIncidentReportListener
The listener for reporting incidents.
|
static interface |
IncidentsManager.IIncidentReviewListener
The listener for reviewing incidents.
|
static interface |
IncidentsManager.IIncidentsResponseListener
The listener for retrieving incidents.
|
static class |
IncidentsManager.IncidentBoxOptions
Contains options that specify which incidents in a box to return.
|
static class |
IncidentsManager.IncidentDeleteOptions
Contains options for deleting incidents, which allows you to cancel
an incident that was previously reported.
|
static interface |
IncidentsManager.IncidentOutputFields
Incident output field types.
|
static class |
IncidentsManager.IncidentRadiusOptions
Contains options that specify which incidents in a box to return.
|
static class |
IncidentsManager.IncidentReportOptions
Contains information on reporting an incident.
|
static interface |
IncidentsManager.IncidentResultTypeFields
Incident result type fields.
|
static class |
IncidentsManager.IncidentReviewOptions
Contains options for reviewing incidents, allowing confirmation that
an incident is valid.
|
static class |
IncidentsManager.IncidentsManagerException
An exception that is thrown when there is an error with an
IncidentsManager operation. |
static interface |
IncidentsManager.IXDIncidentResponseListener
The listener for Getting XDIncidents.
|
static class |
IncidentsManager.RoadSide
The side of the road where the incident occurred.
|
static class |
IncidentsManager.XDIncidentOptionsGetDetails
Contains options that specify which details for incidents to return.
|
static class |
IncidentsManager.XDIncidentOptionsInBox
XDIncidentOptions in a particular search radius defined by [center,searchRadius].
|
static class |
IncidentsManager.XDIncidentOptionsInRadius
XDIncidentOptionsInRadius in a particular search radius defined by [center,searchRadius].
|
Modifier and Type | Field and Description |
---|---|
static int |
INCIDENT_CODE_ACCIDENT
Accident code: 201.
|
static int |
INCIDENT_CODE_CONSTRUCTION
Construction code: 701.
|
static int |
INCIDENT_CODE_HAZARD
Hazard code: 901.
|
static int |
INCIDENT_CODE_POLICE
Police code: 1477.
|
static int |
INCIDENT_OUTPUT_FIELD_ALL
All incident output fields (default).
|
static int |
INCIDENT_OUTPUT_FIELD_DELAY_IMPACT
Provide the delay in minutes versus typical conditions and versus free flow conditions.
|
static int |
INCIDENT_OUTPUT_FIELD_END_TIME
The ending time of the incident.
|
static int |
INCIDENT_OUTPUT_FIELD_EVENT_CODE
The event code of the incident.
|
static int |
INCIDENT_OUTPUT_FIELD_FULL_DESCRIPTION
Longer textual description of the incident including language code.
|
static int |
INCIDENT_OUTPUT_FIELD_HEAD_TAIL
The location of the start and end of the incident.
|
static int |
INCIDENT_OUTPUT_FIELD_ID
The unique identifier of an incident.
|
static int |
INCIDENT_OUTPUT_FIELD_IMPACTING
Whether the incident impacts traffic flow.
|
static int |
INCIDENT_OUTPUT_FIELD_LATLONG
The latitude and longitude of the incident.
|
static int |
INCIDENT_OUTPUT_FIELD_PARAMETERIZED_DESCRIPTION
The description separated into parameters.
|
static int |
INCIDENT_OUTPUT_FIELD_SEVERITY
The severity of the incident.
|
static int |
INCIDENT_OUTPUT_FIELD_SHORT_DESCRIPTION
Short textual description of the incident including language code.
|
static int |
INCIDENT_OUTPUT_FIELD_START_TIME
The starting time of the incident.
|
static int |
INCIDENT_OUTPUT_FIELD_TYPE
The type of the incident.
|
static int |
INCIDENT_OUTPUT_FIELD_VERSION
The version number of the incident report, incremented each time an incident report is updated.
|
static int |
INCIDENT_RESULT_TYPE_ALL
Return all incidents.
|
static int |
INCIDENT_RESULT_TYPE_CONGESTION
Return reports about the slowing down of traffic on your
route.
|
static int |
INCIDENT_RESULT_TYPE_CONSTRUCTION
Return only construction incidents.
|
static int |
INCIDENT_RESULT_TYPE_EVENTS
Return unusual events slated for the area such as a major
sporting event.
|
static int |
INCIDENT_RESULT_TYPE_HAZARD
Return hazard incidents that could alter traffic
speed.
|
static int |
INCIDENT_RESULT_TYPE_INCIDENTS
Return all of the unusual incidents that may slow down traffic, such
as a car accident.
|
static int |
INCIDENT_RESULT_TYPE_POLICE
Return reports about the police presence.
|
static int |
INCIDENT_RESULT_TYPE_ROAD_CLOSURE
Returns only road closures.
|
static int |
INCIDENT_RESULT_TYPE_WEATHER
Returns only weather.
|
static int |
INCIDENT_SEVERITY_0
Incident severity 0, which is the lowest severity.
|
static int |
INCIDENT_SEVERITY_1
Incident severity 1.
|
static int |
INCIDENT_SEVERITY_2
Incident severity 2.
|
static int |
INCIDENT_SEVERITY_3
Incident severity 3.
|
static int |
INCIDENT_SEVERITY_4
Incident severity 4, which is the highest severity.
|
static String |
INCIDENT_SEVERITY_ALL
All Incident severities.
|
static int |
INCIDENT_SOURCE_ALL
Return incidents from all sources.
|
static int |
INCIDENT_SOURCE_COMMUNITY
Return incidents from community sources.
|
static int |
INCIDENT_SOURCE_INRIXONLY
Return incidents from non-commercial sources.
|
static int |
INCIDENT_TYPE_ACCIDENT
Accident type.
|
static int |
INCIDENT_TYPE_ALL
All incident types.
|
static int |
INCIDENT_TYPE_CONGESTION
Traffic congestion incident type (impacting routes).
|
static int |
INCIDENT_TYPE_CONSTRUCTION
Construction incident type.
|
static int |
INCIDENT_TYPE_DANGEROUS_SLOWDOWN
Lane closure incident type.
|
static int |
INCIDENT_TYPE_EVENT
Event incident type.
|
static int |
INCIDENT_TYPE_HAZARD
Hazard incident type.
|
static int |
INCIDENT_TYPE_LANE_CLOSURE
Lane closure incident type.
|
static int |
INCIDENT_TYPE_POLICE
Police incident type.
|
static int |
INCIDENT_TYPE_ROAD_CLOSURE
Road closure incident type.
|
static int |
INCIDENT_TYPE_WEATHER
Weather incident type.
|
public static final int INCIDENT_TYPE_CONSTRUCTION
public static final int INCIDENT_TYPE_EVENT
public static final int INCIDENT_TYPE_CONGESTION
public static final int INCIDENT_TYPE_ACCIDENT
public static final int INCIDENT_TYPE_WEATHER
public static final int INCIDENT_TYPE_POLICE
public static final int INCIDENT_TYPE_ROAD_CLOSURE
public static final int INCIDENT_TYPE_HAZARD
public static final int INCIDENT_TYPE_LANE_CLOSURE
public static final int INCIDENT_TYPE_DANGEROUS_SLOWDOWN
public static final int INCIDENT_TYPE_ALL
public static final int INCIDENT_RESULT_TYPE_INCIDENTS
public static final int INCIDENT_RESULT_TYPE_CONSTRUCTION
public static final int INCIDENT_RESULT_TYPE_EVENTS
public static final int INCIDENT_RESULT_TYPE_CONGESTION
public static final int INCIDENT_RESULT_TYPE_POLICE
public static final int INCIDENT_RESULT_TYPE_HAZARD
public static final int INCIDENT_RESULT_TYPE_ROAD_CLOSURE
public static final int INCIDENT_RESULT_TYPE_WEATHER
public static final int INCIDENT_RESULT_TYPE_ALL
public static final int INCIDENT_SOURCE_INRIXONLY
public static final int INCIDENT_SOURCE_COMMUNITY
public static final int INCIDENT_SOURCE_ALL
public static final int INCIDENT_SEVERITY_0
public static final int INCIDENT_SEVERITY_1
public static final int INCIDENT_SEVERITY_2
public static final int INCIDENT_SEVERITY_3
public static final int INCIDENT_SEVERITY_4
public static final String INCIDENT_SEVERITY_ALL
public static final int INCIDENT_CODE_ACCIDENT
public static final int INCIDENT_CODE_POLICE
public static final int INCIDENT_CODE_CONSTRUCTION
public static final int INCIDENT_CODE_HAZARD
public static final int INCIDENT_OUTPUT_FIELD_ALL
public static final int INCIDENT_OUTPUT_FIELD_ID
public static final int INCIDENT_OUTPUT_FIELD_VERSION
public static final int INCIDENT_OUTPUT_FIELD_TYPE
public static final int INCIDENT_OUTPUT_FIELD_SEVERITY
public static final int INCIDENT_OUTPUT_FIELD_EVENT_CODE
public static final int INCIDENT_OUTPUT_FIELD_LATLONG
public static final int INCIDENT_OUTPUT_FIELD_IMPACTING
public static final int INCIDENT_OUTPUT_FIELD_START_TIME
public static final int INCIDENT_OUTPUT_FIELD_END_TIME
public static final int INCIDENT_OUTPUT_FIELD_DELAY_IMPACT
public static final int INCIDENT_OUTPUT_FIELD_PARAMETERIZED_DESCRIPTION
public static final int INCIDENT_OUTPUT_FIELD_SHORT_DESCRIPTION
public static final int INCIDENT_OUTPUT_FIELD_FULL_DESCRIPTION
public static final int INCIDENT_OUTPUT_FIELD_HEAD_TAIL
public final boolean showIncidents(float zoom)
zoom
- Target zoom level.public IncidentsConfig getConfiguration()
IncidentsConfig
.IncidentsConfig
.public ICancellable getIncidentsInBox(IncidentsManager.IncidentBoxOptions options, IncidentsManager.IIncidentsResponseListener listener)
OutOfMemoryException
may be thrown.options
- Options for which incidents to return.listener
- The listener that will receive the response.ICancellable
so that the request can be cancelled.IncidentsManager.IncidentsManagerException
- when
public ICancellable getIncidentsInRadius(IncidentsManager.IncidentRadiusOptions options, IncidentsManager.IIncidentsResponseListener listener)
OutOfMemoryException
may be thrown.options
- Options for which incidents to return.listener
- The listener that will receive the response.ICancellable
so that the request can be cancelled.IncidentsManager.IncidentsManagerException
- when
public ICancellable reportIncident(IncidentsManager.IncidentReportOptions options, IncidentsManager.IIncidentReportListener listener)
options
- Incident report options. See IncidentsManager.IncidentReportOptions
for
more information. Use IncidentsManager.IncidentReportOptions.getReportAccidentOptions()
, IncidentsManager.IncidentReportOptions.getReportConstructionOptions()
, IncidentsManager.IncidentReportOptions.getReportHazardOptions()
, and IncidentsManager.IncidentReportOptions.getReportPoliceOptions()
to report corresponding
events.listener
- The listener that will receive the response.ICancellable
so that the request can be cancelled.IncidentsManager.IncidentsManagerException
- when
public ICancellable reviewIncident(IncidentsManager.IncidentReviewOptions options, IncidentsManager.IIncidentReviewListener listener)
options
- Incident review options.listener
- The listener that will receive the response.ICancellable
so that the request can be cancelled.IncidentsManager.IncidentsManagerException
- when
public ICancellable deleteIncident(IncidentsManager.IncidentDeleteOptions options, IncidentsManager.IIncidentDeleteListener listener)
options
- Information on what incident to delete.listener
- The listener that will receive the response.ICancellable
so that the request can be cancelled.IncidentsManager.IncidentsManagerException
- when
public ICancellable getXDIncidentsInRadius(IncidentsManager.XDIncidentOptionsInRadius options, IncidentsManager.IXDIncidentResponseListener listener)
XDIncident
.options
- selection criteria for XDIncidents.listener
- The listener that will receive the XDIncident response.ICancellable
so that the request can be cancelled.IncidentsManager.IncidentsManagerException
- when
public ICancellable getXDIncidentsInBox(IncidentsManager.XDIncidentOptionsInBox options, IncidentsManager.IXDIncidentResponseListener listener)
XDIncident
.options
- selection criteria for XDIncidents.listener
- The listener that will receive the XDIncident response.ICancellable
so that the request can be cancelled.IncidentsManager.IncidentsManagerException
- when
public ICancellable getXDIncidentDetails(IncidentsManager.XDIncidentOptionsGetDetails options, IncidentsManager.IXDIncidentResponseListener listener)
XDIncident
information.options
- selection criteria for XDIncidents.listener
- The listener that will receive the XDIncident response.ICancellable
so that the request can be cancelled.IncidentsManager.IncidentsManagerException
- when
Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.