public class MapboxGeocoding extends MapboxService<GeocodingResponse>
Modifier and Type | Class and Description |
---|---|
static class |
MapboxGeocoding.Builder<T extends MapboxGeocoding.Builder>
Builds your geocoder query by adding parameters.
|
Modifier and Type | Field and Description |
---|---|
protected MapboxGeocoding.Builder |
builder |
Modifier | Constructor and Description |
---|---|
protected |
MapboxGeocoding(MapboxGeocoding.Builder builder)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
cancelBatchCall()
Cancel the batch call
|
void |
cancelCall()
Cancel the call
|
retrofit2.Call<List<GeocodingResponse>> |
cloneBatchCall()
clone the batch call
|
retrofit2.Call<GeocodingResponse> |
cloneCall()
clone the call
|
void |
enqueueBatchCall(retrofit2.Callback<List<GeocodingResponse>> callback)
Execute the batch call
|
void |
enqueueCall(retrofit2.Callback<GeocodingResponse> callback)
Execute the call
|
retrofit2.Response<List<GeocodingResponse>> |
executeBatchCall()
Execute the batch call
|
retrofit2.Response<GeocodingResponse> |
executeCall()
Execute the call
|
retrofit2.Call<List<GeocodingResponse>> |
getBatchCall()
Used internally.
|
retrofit2.Call<GeocodingResponse> |
getCall()
Used internally.
|
protected com.google.gson.Gson |
getGson() |
GeocodingService |
getService()
Used internally.
|
getCallFactory, getHeaderUserAgent, getOkHttpClient, isEnableDebug, setCallFactory, setEnableDebug
protected MapboxGeocoding.Builder builder
protected MapboxGeocoding(MapboxGeocoding.Builder builder)
builder
- MapboxGeocoding.Builder
object.protected com.google.gson.Gson getGson()
public GeocodingService getService()
public retrofit2.Call<GeocodingResponse> getCall()
public retrofit2.Call<List<GeocodingResponse>> getBatchCall()
public retrofit2.Response<GeocodingResponse> executeCall() throws IOException
executeCall
in class MapboxService<GeocodingResponse>
IOException
- Signals that an I/O exception of some sort has occurred.public retrofit2.Response<List<GeocodingResponse>> executeBatchCall() throws IOException
IOException
- Signals that an I/O exception of some sort has occurred.public void enqueueCall(retrofit2.Callback<GeocodingResponse> callback)
enqueueCall
in class MapboxService<GeocodingResponse>
callback
- A Retrofit callback.public void enqueueBatchCall(retrofit2.Callback<List<GeocodingResponse>> callback)
callback
- A Retrofit callback.public void cancelCall()
cancelCall
in class MapboxService<GeocodingResponse>
public void cancelBatchCall()
public retrofit2.Call<GeocodingResponse> cloneCall()
cloneCall
in class MapboxService<GeocodingResponse>
public retrofit2.Call<List<GeocodingResponse>> cloneBatchCall()
© 2015–2016 Mapbox. All rights reserved.