public class GeocodingResult
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
AddressComponent[] |
addressComponents
The separate address components in this result.
|
java.lang.String |
formattedAddress
The human-readable address of this location.
|
Geometry |
geometry
Location information for this result.
|
boolean |
partialMatch
Indicates that the geocoder did not return an exact match for the original request, though it
was able to match part of the requested address.
|
java.lang.String |
placeId
A unique identifier for this place.
|
java.lang.String[] |
postcodeLocalities
All the localities contained in a postal code.
|
AddressType[] |
types
The types of the returned result.
|
Constructor and Description |
---|
GeocodingResult() |
public AddressComponent[] addressComponents
public java.lang.String formattedAddress
Often this address is equivalent to the "postal address," which sometimes differs from country to country. (Note that some countries, such as the United Kingdom, do not allow distribution of true postal addresses due to licensing restrictions.) This address is generally composed of one or more address components. For example, the address "111 8th Avenue, New York, NY" contains separate address components for "111" (the street number, "8th Avenue" (the route), "New York" (the city) and "NY" (the US state). These address components contain additional information.
public java.lang.String[] postcodeLocalities
public Geometry geometry
public AddressType[] types
public boolean partialMatch
Partial matches most often occur for street addresses that do not exist within the locality you pass in the request. Partial matches may also be returned when a request matches two or more locations in the same locality. For example, "21 Henr St, Bristol, UK" will return a partial match for both Henry Street and Henrietta Street. Note that if a request includes a misspelled address component, the geocoding service may suggest an alternate address. Suggestions triggered in this way will not be marked as a partial match.
public java.lang.String placeId