public abstract class MapboxTilequery extends com.mapbox.core.MapboxService<com.mapbox.geojson.FeatureCollection,TilequeryService>
Modifier and Type | Class and Description |
---|---|
static class |
MapboxTilequery.Builder
This builder is used to create a new request to the Mapbox Tilequery API.
|
Modifier | Constructor and Description |
---|---|
protected |
MapboxTilequery() |
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.String |
baseUrl() |
static MapboxTilequery.Builder |
builder()
Build a new
MapboxTilequery object with the initial value set for
baseUrl() . |
void |
cancelBatchCall()
Wrapper method for Retrofit's
Call.cancel() call, important to manually cancel call if
the user dismisses the calling activity or no longer needs the returned results. |
retrofit2.Call<java.util.List<com.mapbox.geojson.FeatureCollection>> |
cloneBatchCall()
Wrapper method for Retrofit's
Call.clone() call, useful for getting call information. |
void |
enqueueBatchCall(retrofit2.Callback<java.util.List<com.mapbox.geojson.FeatureCollection>> callback)
Wrapper method for Retrofit's
Call.enqueue(Callback) call returning a batch response
specific to the Tilequery batch API. |
retrofit2.Response<java.util.List<com.mapbox.geojson.FeatureCollection>> |
executeBatchCall()
Wrapper method for Retrofit's
Call.execute() call returning a batch response
specific to the Tilequery API. |
protected com.google.gson.GsonBuilder |
getGsonBuilder() |
protected retrofit2.Call<com.mapbox.geojson.FeatureCollection> |
initializeCall() |
protected com.google.gson.GsonBuilder getGsonBuilder()
getGsonBuilder
in class com.mapbox.core.MapboxService<com.mapbox.geojson.FeatureCollection,TilequeryService>
protected retrofit2.Call<com.mapbox.geojson.FeatureCollection> initializeCall()
initializeCall
in class com.mapbox.core.MapboxService<com.mapbox.geojson.FeatureCollection,TilequeryService>
public retrofit2.Response<java.util.List<com.mapbox.geojson.FeatureCollection>> executeBatchCall() throws java.io.IOException
Call.execute()
call returning a batch response
specific to the Tilequery API.java.io.IOException
- Signals that an I/O exception of some sort has occurred.public void enqueueBatchCall(retrofit2.Callback<java.util.List<com.mapbox.geojson.FeatureCollection>> callback)
Call.enqueue(Callback)
call returning a batch response
specific to the Tilequery batch API. Use this method to make a tilequery request on the Main
Thread.callback
- a Callback
which is used once the FeatureCollection
is created.public void cancelBatchCall()
Call.cancel()
call, important to manually cancel call if
the user dismisses the calling activity or no longer needs the returned results.public retrofit2.Call<java.util.List<com.mapbox.geojson.FeatureCollection>> cloneBatchCall()
Call.clone()
call, useful for getting call information.public static MapboxTilequery.Builder builder()
MapboxTilequery
object with the initial value set for
baseUrl()
.MapboxTilequery.Builder
object for creating this object@NonNull protected abstract java.lang.String baseUrl()
baseUrl
in class com.mapbox.core.MapboxService<com.mapbox.geojson.FeatureCollection,TilequeryService>