public static final class GasStationManager.GasStationsRadiusOptions extends Object
Constructor and Description |
---|
GasStationsRadiusOptions(GeoPoint center,
double radius)
Initializes a new instance of
GasStationManager.GasStationsRadiusOptions class where the
radius units depends on the user settings. |
GasStationsRadiusOptions(GeoPoint center,
double radius,
UserPreferences.Unit units)
Initializes a new instance of the
GasStationManager.GasStationsRadiusOptions
class where the radius units are specified. |
GasStationsRadiusOptions(GeoPoint center,
double radius,
UserPreferences.Unit units,
int outputFields,
int productTypes)
Initializes a new instance of the
GasStationManager.GasStationsRadiusOptions
class, specifying location, units, output fields, and product types. |
Modifier and Type | Method and Description |
---|---|
GasStationManager.GasStationsRadiusOptions |
setCenter(GeoPoint value)
Sets the center point of the circular region.
|
GasStationManager.GasStationsRadiusOptions |
setOutputFields(int value)
Sets the output fields to return.
|
GasStationManager.GasStationsRadiusOptions |
setProductTypes(int value)
Sets the product types to be returned.
|
GasStationManager.GasStationsRadiusOptions |
setRadius(double value)
Sets the radius of the circular region.
|
GasStationManager.GasStationsRadiusOptions |
setUnits(UserPreferences.Unit units)
Sets the preferred units to be used when specifying distances.
|
String |
toString() |
public GasStationsRadiusOptions(GeoPoint center, double radius)
GasStationManager.GasStationsRadiusOptions
class where the
radius units depends on the user settings.
The units for the radius is either meters or miles depending on
the settings that are set using UserPreferences
.center
- The center of the region where the gas stations are located.radius
- The radius of the region where the gas stations are located.public GasStationsRadiusOptions(GeoPoint center, double radius, UserPreferences.Unit units)
GasStationManager.GasStationsRadiusOptions
class where the radius units are specified.center
- The center of the region where the gas stations are located.radius
- The radius of the region where the gas stations are located.units
- Radius units: meters or miles (see
UserPreferences.Unit
).public GasStationsRadiusOptions(GeoPoint center, double radius, UserPreferences.Unit units, int outputFields, int productTypes)
GasStationManager.GasStationsRadiusOptions
class, specifying location, units, output fields, and product types.center
- The center of the region where the gas stations are located.radius
- The radius of the region where the gas stations are located.units
- Radius units: meters or miles (see
UserPreferences.Unit
).outputFields
- The output fields to return.productTypes
- The product types to return.public GasStationManager.GasStationsRadiusOptions setOutputFields(int value)
value
- The output fields. Can be multiple fields.public GasStationManager.GasStationsRadiusOptions setProductTypes(int value)
value
- The product types. Can be multiple product types.public GasStationManager.GasStationsRadiusOptions setCenter(GeoPoint value)
value
- The center of the region in which to get data.GasStationManager.GasStationsRadiusOptions
class.GasStationManager.GasStationManagerException
- when the specified center point is invalid.public GasStationManager.GasStationsRadiusOptions setRadius(double value)
value
- The radius of the circular bounding area from which to
return data.GasStationManager.GasStationsRadiusOptions
class.GasStationManager.GasStationManagerException
- when the radius is less than or equal to zero.public GasStationManager.GasStationsRadiusOptions setUnits(UserPreferences.Unit units)
units
- The preferred units.GasStationManager.GasStationsRadiusOptions
class.GasStationManager.GasStationManagerException
- when units is null.Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.