A geocode result contains geographic information about a place.
| JSON representation | 
|---|
| { "place": string, "placeId": string, "location": { object ( | 
| Fields | |
|---|---|
| place | 
 The fully qualified place identifier for this result. In the format of "//places.googleapis.com/places/{placeID}". See https://developers.google.com/maps/documentation/places/web-service/place-id. for more details. | 
| placeId | 
 The place ID for this result. | 
| location | 
 The latlng of this address. | 
| granularity | 
 The granularity of the location. | 
| viewport | 
 A viewport suitable for displaying the geocode result. | 
| bounds | 
 A bounding box for the address. | 
| formattedAddress | 
 The one line formatted address. | 
| postalAddress | 
 The address in postal address format. | 
| addressComponents[] | 
 Repeated components for each locality level. | 
| postalCodeLocalities[] | 
 Complete list of localities contained in the postal code. This is only populated when the result is of type "postal_code". | 
| types[] | 
 A set of type tags for this result. For example, "political" and "administrative_area". For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types. | 
| plusCode | 
 Plus code of the location in this geocode. | 
GeocodeResult.AddressComponent
The structured components that form the formatted address, if this information is available.
| JSON representation | 
|---|
| { "longText": string, "shortText": string, "types": [ string ], "languageCode": string } | 
| Fields | |
|---|---|
| longText | 
 The full text description or name of the address component. For example, an address component for the country Australia may have a long name of "Australia". | 
| shortText | 
 An abbreviated textual name for the address component, if available. For example, an address component for the country of Australia may have a short name of "AU". | 
| types[] | 
 An array indicating the type(s) of the address component. See https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types for more details. | 
| languageCode | 
 The language used to format this components, in CLDR notation. |