{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/esri/json-schema/esri-geocode-response-schema.json",
  "title": "GeocodeResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/esri-geocoding-api-openapi.yml#/components/schemas/GeocodeResponse",
  "type": "object",
  "properties": {
    "spatialReference": {
      "$ref": "#/$defs/SpatialReference"
    },
    "candidates": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GeocodeCandidate"
      }
    }
  },
  "$defs": {
    "GeocodeCandidate": {
      "type": "object",
      "properties": {
        "address": {
          "type": "string"
        },
        "location": {
          "$ref": "#/$defs/Point"
        },
        "score": {
          "type": "number",
          "description": "Match quality score (0-100)"
        },
        "attributes": {
          "type": "object",
          "additionalProperties": true
        }
      }
    },
    "Point": {
      "type": "object",
      "properties": {
        "x": {
          "type": "number",
          "description": "Longitude"
        },
        "y": {
          "type": "number",
          "description": "Latitude"
        },
        "spatialReference": {
          "$ref": "#/$defs/SpatialReference"
        }
      }
    },
    "SpatialReference": {
      "type": "object",
      "properties": {
        "wkid": {
          "type": "integer",
          "description": "Well-known ID for the spatial reference (e.g., 4326 for WGS84)"
        },
        "latestWkid": {
          "type": "integer"
        }
      }
    }
  }
}