public final class StationListRequest extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StationListRequest.SortingRequestType |
Request.Method| Constructor and Description |
|---|
StationListRequest(String apiKey,
String baseUrl,
Requester requester) |
| Modifier and Type | Method and Description |
|---|---|
R |
execute()
Executes the request using the underlying
Requester,
which will return the requested result object |
StationListRequest |
setCoordinates(double lat,
double lng)
Sets the center of the search
|
StationListRequest |
setGasRequestType(GasRequestType gasRequestType)
Sets which gas prices should be requested, which can either be a specific
one or ALL
Default is: ALL
|
StationListRequest |
setSearchRadius(double radius)
Sets the search radius in Kilometers.
|
StationListRequest |
setSorting(StationListRequest.SortingRequestType sorting)
Sets the sorting for the results.
|
public StationListRequest setCoordinates(double lat, double lng)
lat - Must be between -90 and 90lng - Must be between -180 and 180public StationListRequest setGasRequestType(GasRequestType gasRequestType)
Default is: ALL
public StationListRequest setSearchRadius(double radius)
radius - Must be between 1.0 and 25.0 kmpublic StationListRequest setSorting(StationListRequest.SortingRequestType sorting)
public final R execute()
throws RequesterException
Requester,
which will return the requested result objectexecute in interface Request<R extends Result>RequesterException - Checked Exceptions that might be thrown during request executionCopyright © 2017. All rights reserved.