{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/travelminds-ai/json-schema/travelminds-ai-heritage-monument-out-schema.json",
  "title": "HeritageMonumentOut",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/travelminds-ai-openapi.json#/components/schemas/HeritageMonumentOut",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id",
      "description": "Monument UUID (ASI Centrally Protected Monuments)."
    },
    "name": {
      "type": "string",
      "title": "Name",
      "description": "Monument name as published by the ASI."
    },
    "state_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "State Code",
      "description": "ISO-3166-2 state code (e.g. 'IN-BR')."
    },
    "district_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "District Name",
      "description": "District name as published."
    },
    "category": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Category",
      "description": "Heritage category (e.g. 'temple', 'fort', 'tomb')."
    },
    "protected_since": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Protected Since",
      "description": "Year the monument was first protected by the ASI."
    },
    "latitude": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Latitude",
      "description": "Decimal degrees, signed."
    },
    "longitude": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Longitude",
      "description": "Decimal degrees, signed."
    },
    "nearest_city_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Nearest City Id",
      "description": "Canonical UUID of the nearest TMAIV2-tracked city."
    },
    "nearest_city_km": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Nearest City Km",
      "description": "Crow-fly distance to nearest_city_id in km."
    },
    "wikidata_qid": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Wikidata Qid",
      "description": "Wikidata QID if grounded."
    },
    "license": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "License",
      "description": "License id (typically 'CC-BY-4.0' for ASI publications)."
    },
    "license_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "License Url",
      "description": "Public URL of the license text."
    },
    "attribution_required": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Attribution Required",
      "description": "True if downstream use must cite the ASI."
    }
  },
  "type": "object",
  "required": [
    "id",
    "name"
  ]
}