public abstract class MapboxV6Geocoding extends MapboxV6BaseGeocoding<V6Response>
Forward geocoding lets you convert location text into geographic coordinates, turning
2 Lincoln Memorial Circle NW into a Point with the coordinates
-77.050, 38.889.
The reverse geocoding query type allows you to look up a pair of coordinates and returns the geographic features there, including a standardized address or place and full geographic context.
| Modifier and Type | Class and Description |
|---|---|
static class |
MapboxV6Geocoding.Builder
This builder is used to create a new instance that holds request options
for the forward geocoding request.
|
MapboxV6BaseGeocoding.BaseBuilder<T>| Constructor and Description |
|---|
MapboxV6Geocoding() |
| Modifier and Type | Method and Description |
|---|---|
static MapboxV6Geocoding.Builder |
builder(java.lang.String accessToken,
V6RequestOptions requestOptions)
Creates a new
MapboxV6Geocoding.Builder object. |
protected com.google.gson.GsonBuilder |
getGsonBuilder() |
protected retrofit2.Call<V6Response> |
initializeCall() |
accessToken, baseUrl, clientAppName, permanentprotected com.google.gson.GsonBuilder getGsonBuilder()
getGsonBuilder in class com.mapbox.core.MapboxService<V6Response,com.mapbox.api.geocoding.v6.V6GeocodingService>protected retrofit2.Call<V6Response> initializeCall()
initializeCall in class com.mapbox.core.MapboxService<V6Response,com.mapbox.api.geocoding.v6.V6GeocodingService>public static MapboxV6Geocoding.Builder builder(@NonNull java.lang.String accessToken, @NonNull V6RequestOptions requestOptions)
MapboxV6Geocoding.Builder object.accessToken - a valid Mapbox Access Token used for API requestrequestOptions - options specified for this geocoding requestcom.mapbox.core.exceptions.ServicesException - if accessToken is in incorrect format
or passed requestOptions have unsupported type