Google Maps Platform · Schema
GeocodingResult
A single geocoding result
EnvironmentGeocodingGeolocationMapsNavigationPlacesRoutingSolar
Properties
| Name | Type | Description |
|---|---|---|
| address_components | array | Array of address component objects |
| formatted_address | string | The human-readable address of this location, composed from the individual address components. |
| geometry | object | |
| place_id | string | A unique identifier for this place that can be used with other Google APIs. |
| plus_code | object | |
| types | array | Array of feature types describing the address component. See the list of supported types. |
| partial_match | boolean | 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. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/GeocodingResult",
"title": "GeocodingResult",
"type": "object",
"description": "A single geocoding result",
"properties": {
"address_components": {
"type": "array",
"description": "Array of address component objects",
"items": {
"$ref": "#/components/schemas/AddressComponent"
},
"example": []
},
"formatted_address": {
"type": "string",
"description": "The human-readable address of this location, composed from the individual address components.",
"example": "1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA"
},
"geometry": {
"$ref": "#/components/schemas/Geometry"
},
"place_id": {
"type": "string",
"description": "A unique identifier for this place that can be used with other Google APIs.",
"example": "ChIJ2eUgeAK6j4ARbn5u_wAGqWA"
},
"plus_code": {
"$ref": "#/components/schemas/PlusCode"
},
"types": {
"type": "array",
"description": "Array of feature types describing the address component. See the list of supported types.",
"items": {
"type": "string"
},
"example": [
"street_address"
]
},
"partial_match": {
"type": "boolean",
"description": "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.",
"example": true
}
},
"required": [
"address_components",
"formatted_address",
"geometry",
"place_id",
"types"
]
}