public abstract class V6Response
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
V6Response() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String |
attribution()
Attributes the results of the Mapbox Geocoding API to Mapbox.
|
abstract java.util.List<V6Feature> |
features()
A list of feature objects.
|
static V6Response |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract java.lang.String |
type()
"FeatureCollection",
a GeoJSON type from the GeoJSON specification.
|
static com.google.gson.TypeAdapter<V6Response> |
typeAdapter(com.google.gson.Gson gson)
Gson TYPE adapter for parsing Gson to this class.
|
@NonNull public abstract java.lang.String type()
@NonNull public abstract java.util.List<V6Feature> features()
Read the Search result prioritization guide to learn more about how returned features are organized in the Geocoding API response.
V6Features@NonNull public abstract java.lang.String attribution()
@NonNull public static V6Response fromJson(@NonNull java.lang.String json)
json - a formatted valid JSON string defining a GeoJson Geocoding Responsepublic static com.google.gson.TypeAdapter<V6Response> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson object