{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-maps/json-schema/google-maps-geolocation-response-schema.json",
  "title": "GeolocationResponse",
  "description": "A successful geolocation request will return a JSON-formatted response defining a location and radius.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/google-maps-geolocation-api-api-openapi.yml#/components/schemas/GeolocationResponse",
  "type": "object",
  "required": [
    "location",
    "accuracy"
  ],
  "properties": {
    "location": {
      "description": "The user’s estimated latitude and longitude, in degrees.",
      "$ref": "#/$defs/LatLngLiteral"
    },
    "accuracy": {
      "description": "The accuracy of the estimated location, in meters. This represents the radius of a circle around the given `location`. If your Geolocation response shows a very high value in the `accuracy` field, the service may be geolocating based on the  request IP, instead of WiFi points or cell towers. This can happen if no cell towers or access points are valid or recognized. To confirm that this is the issue, set `considerIp` to `false` in your request. If the response is a `404`, you've confirmed that your `wifiAccessPoints` and `cellTowers` objects could not be geolocated.",
      "type": "number"
    }
  },
  "$defs": {
    "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"
        }
      }
    }
  }
}