{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/openephemeris-com/json-schema/openephemeris-com-reverse-geocode-response-schema.json",
  "title": "ReverseGeocodeResponse",
  "description": "Response for /location/reverse endpoint.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/openephemeris-com-location-timezone-api-openapi.yml#/components/schemas/ReverseGeocodeResponse",
  "additionalProperties": true,
  "properties": {
    "city": {
      "anyOf": [
        {
          "type": "string"
        }
      ],
      "description": "City or locality name, if available",
      "title": "City"
    },
    "country": {
      "anyOf": [
        {
          "type": "string"
        }
      ],
      "description": "Full country name",
      "title": "Country"
    },
    "country_code": {
      "anyOf": [
        {
          "maxLength": 2,
          "minLength": 2,
          "type": "string"
        }
      ],
      "description": "ISO 3166-1 alpha-2 country code",
      "title": "Country Code"
    },
    "display_name": {
      "description": "Formatted name suitable for UI display",
      "title": "Display Name",
      "type": "string"
    },
    "latitude": {
      "description": "Latitude in decimal degrees",
      "maximum": 90,
      "minimum": -90,
      "title": "Latitude",
      "type": "number"
    },
    "longitude": {
      "description": "Longitude in decimal degrees",
      "maximum": 180,
      "minimum": -180,
      "title": "Longitude",
      "type": "number"
    },
    "region": {
      "anyOf": [
        {
          "type": "string"
        }
      ],
      "description": "Region, state, or province name",
      "title": "Region"
    },
    "timezone": {
      "description": "IANA timezone identifier",
      "title": "Timezone",
      "type": "string"
    }
  },
  "required": [
    "latitude",
    "longitude",
    "timezone",
    "display_name"
  ],
  "type": "object"
}