public abstract class V6Properties extends V6JsonObject
Constructor and Description |
---|
V6Properties() |
Modifier and Type | Method and Description |
---|---|
abstract V6Context |
context()
An object representing the hierarchy of encompassing parent features.
|
abstract V6Coordinates |
coordinates()
Object containing coordinate parameters (lat, long), accuracy and
routable points.
|
abstract java.lang.String |
featureType()
A string describing the type of the feature.
|
static V6Properties |
fromJson(java.lang.String json)
Create a V6Property object from JSON.
|
abstract java.lang.String |
fullAddress()
Full formatted string of the feature, combining name_preferred
and place_formatted.
|
abstract java.lang.String |
mapboxId()
Feature id.
|
abstract V6MatchCode |
matchCode()
Additional metadata indicating how the result components match to the input query.
|
abstract java.lang.String |
name()
Formatted name.
|
abstract java.lang.String |
namePreferred()
The canonical or otherwise more common alias for the feature name.
|
abstract java.lang.String |
placeFormatted()
Formatted string of result context: place region country postcode.
|
static com.google.gson.TypeAdapter<V6Properties> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
getUnrecognizedJsonProperties
@NonNull @SerializedName(value="mapbox_id") public abstract java.lang.String mapboxId()
@NonNull @SerializedName(value="feature_type") public abstract java.lang.String featureType()
@Nullable @SerializedName(value="name") public abstract java.lang.String name()
@Nullable @SerializedName(value="name_preferred") public abstract java.lang.String namePreferred()
@Nullable @SerializedName(value="place_formatted") public abstract java.lang.String placeFormatted()
name()
.@Nullable @SerializedName(value="full_address") public abstract java.lang.String fullAddress()
@Nullable @SerializedName(value="context") public abstract V6Context context()
@Nullable @SerializedName(value="coordinates") public abstract V6Coordinates coordinates()
@Nullable @SerializedName(value="match_code") public abstract V6MatchCode matchCode()
public static V6Properties fromJson(@NonNull java.lang.String json)
json
- string of JSON making up a carmen contextpublic static com.google.gson.TypeAdapter<V6Properties> typeAdapter(com.google.gson.Gson gson)
gson
- the built Gson
object