public static final class IncidentsManager.XDIncidentOptionsInRadius 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 |
---|
XDIncidentOptionsInRadius(GeoPoint center,
double radius)
Initializes a new instance of the
IncidentsManager.XDIncidentOptionsInRadius class. |
Modifier and Type | Method and Description |
---|---|
GeoPoint |
getCenter()
Gets the center of region.
|
double |
getRadius()
Get radius of the bounding area.
|
IncidentsManager.XDIncidentOptionsInRadius |
setCenter(GeoPoint center)
Sets the center of the circular bounding area from 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 . |
IncidentsManager.XDIncidentOptionsInRadius |
setRadius(double radius)
Sets the radius of the circular bounding area from which to return data.
|
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 XDIncidentOptionsInRadius(GeoPoint center, double radius)
IncidentsManager.XDIncidentOptionsInRadius
class.
center
- The center of the circular region from which to get the incidents.radius
- The radius of the circular region.
Units of radius are determined at runtime through UserPreferences.getSettingUnits()
.public IncidentsManager.XDIncidentOptionsInRadius setCenter(GeoPoint center)
center
- The center of the region.IncidentsManager.IncidentRadiusOptions
class.IncidentsManager.IncidentsManagerException
- when center is invalid.public IncidentsManager.XDIncidentOptionsInRadius setRadius(double radius)
radius
- The radius of the bounding area, which must be a positive integer.
Units of radius are determined at runtime through UserPreferences.getSettingUnits()
.IncidentsManager.IncidentRadiusOptions
class.IncidentsManager.IncidentsManagerException
- when radius is invalid.public GeoPoint getCenter()
public double getRadius()
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.