- [JSON representation](https://developers.google.com/maps/documentation/geocoding/reference/rest/v4/GeocodeResult#SCHEMA_REPRESENTATION)
- [GeocodeResult.AddressComponent](https://developers.google.com/maps/documentation/geocoding/reference/rest/v4/GeocodeResult#GeocodeResult.AddressComponent)
  - [JSON representation](https://developers.google.com/maps/documentation/geocoding/reference/rest/v4/GeocodeResult#GeocodeResult.AddressComponent.SCHEMA_REPRESENTATION)

A geocode result contains geographic information about a place.

| JSON representation |
|---|
| ``` { "place": string, "placeId": string, "location": { object (`https://developers.google.com/maps/documentation/geocoding/reference/rest/Shared.Types/Viewport#LatLng`) }, "granularity": enum (`https://developers.google.com/maps/documentation/geocoding/reference/rest/v4/GeocodeResult.Granularity`), "viewport": { object (`https://developers.google.com/maps/documentation/geocoding/reference/rest/Shared.Types/Viewport`) }, "bounds": { object (`https://developers.google.com/maps/documentation/geocoding/reference/rest/Shared.Types/Viewport`) }, "formattedAddress": string, "postalAddress": { object (`https://developers.google.com/maps/documentation/geocoding/reference/rest/Shared.Types/PostalAddress`) }, "addressComponents": [ { object (`https://developers.google.com/maps/documentation/geocoding/reference/rest/v4/GeocodeResult#GeocodeResult.AddressComponent`) } ], "postalCodeLocalities": [ { object (`https://developers.google.com/maps/documentation/geocoding/reference/rest/Shared.Types/LocalizedText`) } ], "types": [ string ], "plusCode": { object (`https://developers.google.com/maps/documentation/geocoding/reference/rest/v4/PlusCode`) } } ``` |

| Fields ||
|---|---|
| `place` | `string` This Place's resource name, in `places/{placeId}` format. Can be used to look up the Place. |
| `placeId` | `string` The unique identifier of a place. |
| `location` | ``object (`https://developers.google.com/maps/documentation/geocoding/reference/rest/Shared.Types/Viewport#LatLng`)`` The latlng of this address. |
| `granularity` | ``enum (`https://developers.google.com/maps/documentation/geocoding/reference/rest/v4/GeocodeResult.Granularity`)`` The granularity of the location. |
| `viewport` | ``object (`https://developers.google.com/maps/documentation/geocoding/reference/rest/Shared.Types/Viewport`)`` A viewport suitable for displaying the geocode result. |
| `bounds` | ``object (`https://developers.google.com/maps/documentation/geocoding/reference/rest/Shared.Types/Viewport`)`` A bounding box for the address. |
| `formattedAddress` | `string` The one line formatted address. |
| `postalAddress` | ``object (`https://developers.google.com/maps/documentation/geocoding/reference/rest/Shared.Types/PostalAddress`)`` The address in postal address format. |
| `addressComponents[]` | ``object (`https://developers.google.com/maps/documentation/geocoding/reference/rest/v4/GeocodeResult#GeocodeResult.AddressComponent`)`` Repeated components for each locality level. |
| `postalCodeLocalities[]` | ``object (`https://developers.google.com/maps/documentation/geocoding/reference/rest/Shared.Types/LocalizedText`)`` Complete list of localities contained in the postal code. This is only populated when the result is of type "postal_code". |
| `types[]` | `string` 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` | ``object (`https://developers.google.com/maps/documentation/geocoding/reference/rest/v4/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` | `string` 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` | `string` 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[]` | `string` An array indicating the type(s) of the address component. These values are drawn from the Address types and address component types table used by the Places API: <https://developers.google.com/maps/documentation/places/web-service/place-types#address-types> |
| `languageCode` | `string` The language used to format this component, in CLDR notation. |