public static final class IncidentsManager.XDIncidentOptionsInBox extends Object
Modifier and Type | Class and Description |
---|---|
static class |
com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentOutputField
An enum that describes the output fields of an
XDIncident . |
static class |
com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentSeverity
An enum that describes the severity level of an
XDIncident . |
static class |
com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentSource
An enum that describes the reporting source of an
XDIncident . |
static class |
com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentStatus
An enum that describes the status of an
XDIncident . |
static interface |
com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentTypeFields
Incident type fields.
|
static class |
com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.LocRefMethod
An enum that describes 'LocRefMethod' of an
XDIncident . |
Modifier and Type | Field and Description |
---|---|
static int |
INCIDENT_TYPE_ACCIDENTS
Return reports about accidents.
|
static int |
INCIDENT_TYPE_ALL
Return all incidents.
|
static int |
INCIDENT_TYPE_CONGESTION
Return reports about the slowing down of traffic on your
route.
|
static int |
INCIDENT_TYPE_CONSTRUCTION
Return only construction incidents.
|
static int |
INCIDENT_TYPE_EVENT
Return unusual events slated for the area such as a major
sporting event.
|
static int |
INCIDENT_TYPE_HAZARD
Return reports about hazards.
|
static int |
INCIDENT_TYPE_LANE_CLOSURE
Return reports about lane closures.
|
static int |
INCIDENT_TYPE_POLICE
Return reports about the police presence.
|
static int |
INCIDENT_TYPE_ROAD_CLOSURE
Return reports about road closures.
|
static int |
INCIDENT_TYPE_WEATHER
Return weather events that could alter traffic
speed.
|
Constructor and Description |
---|
XDIncidentOptionsInBox(GeoPoint corner1,
GeoPoint corner2)
Initializes a new instance of the
IncidentsManager.IncidentBoxOptions . |
Modifier and Type | Method and Description |
---|---|
GeoPoint |
getCorner1()
Gets corner 1 of the bounding box.
|
GeoPoint |
getCorner2()
Gets the second corner of the bounding box.
|
IncidentsManager.XDIncidentOptionsInBox |
setCorner1(GeoPoint corner1)
Sets the first corner of the bounding rectangle.
|
IncidentsManager.XDIncidentOptionsInBox |
setCorner2(GeoPoint corner2)
Sets the second corner of the region in which to get data.
|
T |
setIncidentOutputFields(com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentOutputField... outputFields)
Sets the list of IncidentOutputFields.
|
T |
setIncidentSeverityTypes(com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentSeverity... incidentSeverity)
Set a List of IncidentSeverity for the current XDIncidentOptions.
|
T |
setIncidentSeverityTypes(List<com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentSeverity> incidentSeverity)
Set a List of IncidentSeverity for the current XDIncidentOptions.
|
T |
setIncidentSource(com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentSource source)
Set the IncidentSource for the current XDIncidentOptions.
|
T |
setIncidentStatus(com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentStatus status)
Set the IncidentStatus for the current XDIncidentOptions.
|
T |
setIncidentTypes(int types)
Sets the incident types for the current
IncidentsManager.XDIncidentOptionsBase . |
T |
setResultsLocale(Locale locale)
Set the preferred locale for the language of the results.
|
public static final int INCIDENT_TYPE_ALL
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_ACCIDENTS
public static final int INCIDENT_TYPE_WEATHER
public static final int INCIDENT_TYPE_POLICE
public static final int INCIDENT_TYPE_HAZARD
public static final int INCIDENT_TYPE_ROAD_CLOSURE
public static final int INCIDENT_TYPE_LANE_CLOSURE
public XDIncidentOptionsInBox(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.public GeoPoint getCorner1()
public IncidentsManager.XDIncidentOptionsInBox setCorner1(GeoPoint corner1)
corner1
- The first corner of the bounding box.IncidentsManager.IncidentBoxOptions
class.IncidentsManager.IncidentsManagerException
- when corner1 is invalid.public GeoPoint getCorner2()
public IncidentsManager.XDIncidentOptionsInBox setCorner2(GeoPoint corner2)
corner2
- The second corner of the bounding box.IncidentsManager.IncidentBoxOptions
class.IncidentsManager.IncidentsManagerException
- when corner2 is invalid.public final T setIncidentOutputFields(com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentOutputField... outputFields)
outputFields
- the list of IncidentOutputFields.public T setResultsLocale(Locale locale)
locale
- The locale or null
to use the default.public final T setIncidentSource(com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentSource source)
source
- an instance of IncidentsManager.XDIncidentOptionsBase.IncidentSource
public final T setIncidentStatus(com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentStatus status)
status
- an instance of IncidentsManager.XDIncidentOptionsBase.IncidentStatus
public final T setIncidentSeverityTypes(com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentSeverity... incidentSeverity)
incidentSeverity
- an instance of IncidentsManager.XDIncidentOptionsBase.IncidentSeverity
public final T setIncidentTypes(int types)
IncidentsManager.XDIncidentOptionsBase
.types
- Incident types. Can be INCIDENT_TYPE_ALL
or any combination of the following:
public final T setIncidentSeverityTypes(List<com.inrix.sdk.IncidentsManager.XDIncidentOptionsBase.IncidentSeverity> incidentSeverity)
incidentSeverity
- an instance of IncidentsManager.XDIncidentOptionsBase.IncidentSeverity
Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.