public class GeocodeResult
extends java.lang.Object
The data of a geocode result is represented by an instance of Location
,
accessed through the location property. The quality of the result can be
assessed in a broad sense with the relevance property, or in more detail using
the matchQuality dictionary.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Location |
getLocation()
The location data of the geocode result.
|
java.lang.String |
getMatchLevel()
Shows the level of the most precise area information for the match,
district, city or a higher administrative level.
|
java.util.Map<java.lang.String,java.lang.Float> |
getMatchQuality()
Details about the quality of the result.
|
float |
getRelevance()
The relevance of the result location to the original search parameters.
|
int |
hashCode() |
public float getRelevance()
The relevance of a result provides a measure of how accurate or reliable it is. The valid range is [0, 1], with a value of 1 representing a perfect match.
public java.lang.String getMatchLevel()
The possible values are: "country", "state", "county", "city", "district", "street", "intersection", "houseNumber", "postalCode" and "landmark".
public java.util.Map<java.lang.String,java.lang.Float> getMatchQuality()
Additional information about the accuracy of the result is available in the matchQuality dictionary. It contains one or more float values representing how well each individual search parameter was matched. The values will be in the range [0, 1] with a value of 1 indicating a perfect match.
The possible keys are "State", "County", "City", "District", "Street", "SecondaryStreet", "HouseNumber", and "PostalCode".
The "SecondaryStreet" key will be present if an intersection was specified in the geocode request. For example, if the request contained "1st St at 2nd Ave", the "Street" key would access the match value for "1st St" and the "SecondaryStreet" key would access the match value for "2nd Ave".
public Location getLocation()
Location
data of the geocode result.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object