public abstract class V6Feature extends V6JsonObject
| Constructor and Description |
|---|
V6Feature() |
| Modifier and Type | Method and Description |
|---|---|
abstract com.mapbox.geojson.Geometry |
geometry()
An object describing the spatial geometry of the returned feature.
|
abstract java.lang.String |
id()
Feature id.
|
abstract V6Properties |
properties()
Feature properties object which contains feature attributes.
|
abstract java.lang.String |
type()
"Feature", a GeoJSON type from the
GeoJSON specification.
|
static com.google.gson.TypeAdapter<V6Feature> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
getUnrecognizedJsonProperties@NonNull @SerializedName(value="id") public abstract java.lang.String id()
@NonNull @SerializedName(value="type") public abstract java.lang.String type()
@NonNull @SerializedName(value="geometry") public abstract com.mapbox.geojson.Geometry geometry()
@NonNull @SerializedName(value="properties") public abstract V6Properties properties()
@NonNull public static com.google.gson.TypeAdapter<V6Feature> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson object