GeocodingResponse

EnvironmentGeocodingGeolocationMapsNavigationPlacesRoutingSolarGeospatial

Properties

Name Type Description
plus_code object An encoded location reference, derived from latitude and longitude coordinates, that represents an area: 1/8000th of a degree by 1/8000th of a degree (about 14m x 14m at the equator) or smaller. Plus
results array
status object
error_message string A short description of the error.
View JSON Schema on GitHub

JSON Schema

google-maps-geocoding-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-maps/json-schema/google-maps-geocoding-response-schema.json",
  "title": "GeocodingResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/google-maps-geocoding-api-api-openapi.yml#/components/schemas/GeocodingResponse",
  "type": "object",
  "required": [
    "status",
    "results"
  ],
  "properties": {
    "plus_code": {
      "description": "An encoded location reference, derived from latitude and longitude coordinates, that represents an area: 1/8000th of a degree by 1/8000th of a degree (about 14m x 14m at the equator) or smaller. Plus codes can be used as a replacement for street addresses in places where they do not exist (where buildings are not numbered or streets are not named). See [Open Location Code](https://en.wikipedia.org/wiki/Open_Location_Code) and [plus codes](https://plus.codes/).\n",
      "$ref": "#/$defs/PlusCode"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GeocodingResult"
      }
    },
    "status": {
      "$ref": "#/$defs/GeocodingStatus"
    },
    "error_message": {
      "description": "A short description of the error.",
      "type": "string"
    }
  },
  "$defs": {
    "AddressComponent": {
      "title": "AddressComponent",
      "type": "object",
      "required": [
        "long_name",
        "short_name",
        "types"
      ],
      "properties": {
        "long_name": {
          "description": "The full text description or name of the address component as returned by the Geocoder.",
          "type": "string"
        },
        "short_name": {
          "description": "An abbreviated textual name for the address component, if available. For example, an address component for the state of Alaska may have a long_name of \"Alaska\" and a short_name of \"AK\" using the 2-letter postal abbreviation.",
          "type": "string"
        },
        "types": {
          "description": "An array indicating the type of the address component. See the list of [supported types](https://developers.google.com/maps/documentation/places/web-service/supported_types).",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "Bounds": {
      "title": "Bounds",
      "type": "object",
      "description": "A rectangle in geographical coordinates from points at the southwest and northeast corners.",
      "required": [
        "northeast",
        "southwest"
      ],
      "properties": {
        "northeast": {
          "$ref": "#/$defs/LatLngLiteral"
        },
        "southwest": {
          "$ref": "#/$defs/LatLngLiteral"
        }
      }
    },
    "GeocodingGeometry": {
      "type": "object",
      "title": "GeocodingGeometry",
      "description": "An object describing the location.",
      "required": [
        "location",
        "viewport",
        "location_type"
      ],
      "properties": {
        "location": {
          "$ref": "#/$defs/LatLngLiteral"
        },
        "location_type": {
          "description": "Stores additional data about the specified location. The following values are currently supported:\n\n- \"ROOFTOP\" indicates that the returned result is a precise geocode for which we have location information accurate down to street address precision.\n- \"RANGE_INTERPOLATED\" indicates that the returned result reflects an approximation (usually on a road) interpolated between two precise points (such as intersections). Interpolated results are generally returned when rooftop geocodes are unavailable for a street address.\n- \"GEOMETRIC_CENTER\" indicates that the returned result is the geometric center of a result such as a polyline (for example, a street) or polygon (region).\n- \"APPROXIMATE\" indicates that the returned result is approximate.\n",
          "type": "string",
          "enum": [
            "ROOFTOP",
            "RANGE_INTERPOLATED",
            "GEOMETRIC_CENTER",
            "APPROXIMATE"
          ]
        },
        "bounds": {
          "$ref": "#/$defs/Bounds"
        },
        "viewport": {
          "$ref": "#/$defs/Bounds"
        }
      }
    },
    "GeocodingResult": {
      "type": "object",
      "title": "GeocodingResult",
      "required": [
        "address_components",
        "formatted_address",
        "geometry",
        "place_id",
        "types"
      ],
      "properties": {
        "address_components": {
          "description": "An array containing the separate components applicable to this address.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/AddressComponent"
          }
        },
        "formatted_address": {
          "description": "The human-readable address of this location.",
          "type": "string"
        },
        "geometry": {
          "$ref": "#/$defs/GeocodingGeometry"
        },
        "place_id": {
          "description": "A unique identifier that can be used with other Google APIs. For example, you can use the `place_id` in a Places API request to get details of a local business, such as phone number, opening hours, user reviews, and more. See the [place ID overview](https://developers.google.com/places/place-id).",
          "type": "string"
        },
        "plus_code": {
          "$ref": "#/$defs/PlusCode"
        },
        "types": {
          "description": "The `types[]` array indicates the type of the returned result. This array contains a set of zero or more tags identifying the type of feature returned in the result. For example, a geocode of \"Chicago\" returns \"locality\" which indicates that \"Chicago\" is a city, and also returns \"political\" which indicates it is a political entity.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "postcode_localities": {
          "description": "An array denoting all the localities contained in a postal code. This is only present when the result is a postal code that contains multiple localities.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "partial_match": {
          "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. You may wish to examine the original request for misspellings and/or an incomplete address.\n\nPartial 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.\n",
          "type": "boolean"
        }
      }
    },
    "GeocodingStatus": {
      "type": "string",
      "title": "GeocodingStatus",
      "description": "The `status` field within the Geocoding response object contains the status of the request, and may contain debugging information to help you track down why geocoding is not working. The \"status\" field may contain the following values:\n\n- `OK` indicates that no errors occurred; the address was successfully parsed and at least one geocode was returned.\n- `ZERO_RESULTS` indicates that the geocode was successful but returned no results. This may occur if the geocoder was passed a non-existent address or a `latlng` in a remote location.\n- `OVER_DAILY_LIMIT` indicates any of the following:\n  - The API key is missing or invalid.\n  - Billing has not been enabled on your account.\n  - A self-imposed usage cap has been exceeded.\n  - The provided method of payment is no longer valid (for example, a credit card has expired).\n- `OVER_QUERY_LIMIT` indicates that you are over your quota.\n- `REQUEST_DENIED` indicates that your request was denied.\n- `INVALID_REQUEST` generally indicates that the query (address, components, or latlng) is missing.\n- `UNKNOWN_ERROR` indicates that the request could not be processed due to a server error. The request may succeed if you try again.\n",
      "enum": [
        "OK",
        "INVALID_REQUEST",
        "OVER_DAILY_LIMIT",
        "OVER_QUERY_LIMIT",
        "REQUEST_DENIED",
        "UNKNOWN_ERROR",
        "ZERO_RESULTS"
      ]
    },
    "LatLngLiteral": {
      "type": "object",
      "title": "LatLngLiteral",
      "description": "An object describing a specific location with Latitude and Longitude in decimal degrees.",
      "required": [
        "lat",
        "lng"
      ],
      "properties": {
        "lat": {
          "type": "number",
          "description": "Latitude in decimal degrees"
        },
        "lng": {
          "type": "number",
          "description": "Longitude in decimal degrees"
        }
      }
    },
    "PlusCode": {
      "type": "object",
      "title": "PlusCode",
      "description": "An encoded location reference, derived from latitude and longitude coordinates, that represents an area, 1/8000th of a degree by 1/8000th of a degree (about 14m x 14m at the equator) or smaller. Plus codes can be used as a replacement for street addresses in places where they do not exist (where buildings are not numbered or streets are not named).",
      "required": [
        "global_code"
      ],
      "properties": {
        "compound_code": {
          "description": "The `compound_code` is a 6 character or longer local code with an explicit location (`CWC8+R9, Mountain View, CA, USA`). Some APIs may return an empty string if the `compound_code` is not available.",
          "type": "string"
        },
        "global_code": {
          "description": "The `global_code` is a 4 character area code and 6 character or longer local code (`849VCWC8+R9`).",
          "type": "string"
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-maps-geocoding-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.