public class GasStationManager extends AreaLimitedManager
Modifier and Type | Class and Description |
---|---|
static class |
GasStationManager.GasStationInformationOptions
Request options to get an information about single gas station.
|
static class |
GasStationManager.GasStationManagerException
An exception that is thrown when there is an error with a
GasStationManager operation. |
static class |
GasStationManager.GasStationsBoxOptions
Contains information used in filtering which gas stations are returned when
retrieving gas stations in a rectangular region.
|
static class |
GasStationManager.GasStationsOnRouteOptions
Contains options for requesting gas stations along a route.
|
static class |
GasStationManager.GasStationsRadiusOptions
Contains information used in filtering which gas stations are returned when
retrieving gas stations in a circular region.
|
static interface |
GasStationManager.IGasStationResponseListener
Response listener for retrieving information on a single gas station.
|
static interface |
GasStationManager.IGasStationsResponseListener
Response listener for retrieving information on multiple gas stations.
|
isQueryAreaWithinLimits, isQueryAreaWithinLimits
public final boolean showGasStations(float zoom)
zoom
- Target zoom level.public final double getAllowedArea(UserPreferences.Unit units)
getAllowedArea
in class AreaLimitedManager
units
- units to express the area inpublic GasStationsConfig getConfiguration()
GasStationManager
.GasStationsConfig
.public final ICancellable getGasStationsInRadius(GasStationManager.GasStationsRadiusOptions options, GasStationManager.IGasStationsResponseListener listener)
options
- Information about which gas stations to return.listener
- The listener that will receive the response.ICancellable
so that the action can be cancelled.GasStationManager.GasStationManagerException
- when:
public final ICancellable getGasStationsInBox(GasStationManager.GasStationsBoxOptions options, GasStationManager.IGasStationsResponseListener listener)
options
- Information about the gas stations to return.listener
- The listener that will receive the response.ICancellable
so that the action can be cancelled.GasStationManager.GasStationManagerException
- when:
public final ICancellable getGasStationInformation(GasStationManager.GasStationInformationOptions options, GasStationManager.IGasStationResponseListener listener)
options
- Options for which types of gas station information to return.listener
- The listener that will receive the response.ICancellable
, so that the action can be cancelled.GasStationManager.GasStationManagerException
- when either options or listener is null.public final ICancellable getGasStationsOnRoute(GasStationManager.GasStationsOnRouteOptions options, GasStationManager.IGasStationsResponseListener listener)
options
- Options for which types of gas station on route to return.listener
- The listener that will receive the response.ICancellable
, so that the action can be cancelled.GasStationManager.GasStationManagerException
- when either options
or listener
is null
>.Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.