public abstract class V6MatchCode extends V6JsonObject
V6MatchCode object in the Geocoding API helps you understand
how the resulting address feature aligns with the query submitted.
Available only for address-type features, the V6MatchCode provides a breakdown
of how each element of the result matches with the query, plus an overall Confidence score,
based on how well it matches. This can help you make decisions about what results to keep
or throw out based on your application's tolerance for fuzzy matching on the query.
Smart Address Match is available for all forward geocoding requests that return an address type feature. It works best when using Structured Input forward queries, as the request components must be typed explicitly.
| Constructor and Description |
|---|
V6MatchCode() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String |
addressNumber()
Match code for address number.
|
abstract java.lang.String |
confidence()
Confidence score, which indicates how well the result matches the input query.
|
abstract java.lang.String |
country()
Match code for country.
|
static V6MatchCode |
fromJson(java.lang.String json)
Create a V6MatchCode object from JSON.
|
abstract java.lang.String |
locality()
Match code for locality.
|
abstract java.lang.String |
place()
Match code for place.
|
abstract java.lang.String |
postcode()
Match code for postcode.
|
abstract java.lang.String |
region()
Match code for region.
|
abstract java.lang.String |
street()
Match code for street.
|
static com.google.gson.TypeAdapter<V6MatchCode> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
getUnrecognizedJsonProperties@Nullable @SerializedName(value="address_number") public abstract java.lang.String addressNumber()
@Nullable @SerializedName(value="street") public abstract java.lang.String street()
@Nullable @SerializedName(value="locality") public abstract java.lang.String locality()
@Nullable @SerializedName(value="place") public abstract java.lang.String place()
@Nullable @SerializedName(value="postcode") public abstract java.lang.String postcode()
@Nullable @SerializedName(value="region") public abstract java.lang.String region()
@Nullable @SerializedName(value="country") public abstract java.lang.String country()
@Nullable @SerializedName(value="confidence") public abstract java.lang.String confidence()
public static V6MatchCode fromJson(@NonNull java.lang.String json)
json - string of JSON making up a carmen contextpublic static com.google.gson.TypeAdapter<V6MatchCode> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson object