{
  "id": "at_kg_number",
  "kind": "datatype",
  "status": "draft",
  "name": "Austrian cadastral municipality number (KG-Nummer)",
  "doc": "Five-digit number of an Austrian cadastral municipality (Katastralgemeinde), the unit in which the Federal Office of Metrology and Surveying (BEV) keeps the cadastre and the courts keep the land register. Numbers run from 01002 to 92129 and are written with the leading zero; the 01 numbers are in Vienna. A cadastral municipality is not a municipality: a municipality (at_gkz) usually holds several of them, and the number is a different code. BEV files call the field KG_NUMMER, KG-NR or KG, and KG-EZ for the cadastral municipality of a land register entry. Read as integers, numbers of Vienna lose the zero (1204).",
  "parent": "id",
  "is_pii": false,
  "categories": [
    "geo",
    "realestate"
  ],
  "country": [
    "AT"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^(?:0[1-9]|[1-8]\\d|9[0-2])\\d{3}$",
  "examples": [
    {
      "value": "01002",
      "description": "lowest number of the range",
      "valid": true
    },
    {
      "value": "01204",
      "description": "cadastral municipality of a triangulation point in the 14th district of Vienna (BEV)",
      "valid": true
    },
    {
      "value": "73518",
      "description": "cadastral municipality in Carinthia (BEV control points)",
      "valid": true
    },
    {
      "value": "1204",
      "description": "leading zero lost",
      "valid": false
    },
    {
      "value": "93001",
      "description": "beyond the range",
      "valid": false
    }
  ],
  "mappings": {
    "wikidata": "P8322"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://de.wikipedia.org/wiki/Katastralgemeinde"
    },
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Property:P8322"
    },
    {
      "type": "doc",
      "url": "https://www.bev.gv.at/Services/Produkte/Kataster-und-Verzeichnisse/Kataster-Stichtagsdaten.html"
    }
  ],
  "translations": {
    "de": {
      "name": "Katastralgemeindenummer"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "atkgnumberbyname",
        "type": "field",
        "match": "regex",
        "file": "at/at_geo.yaml"
      },
      {
        "rule": "atkgnumberbyshortname",
        "type": "field",
        "match": "text",
        "file": "at/at_geo.yaml"
      }
    ]
  },
  "quality": {
    "score": 100,
    "missing": []
  },
  "source": {
    "path": "data/datatypes/AT/geo/at_kg_number.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/AT/geo/at_kg_number.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/AT/geo/at_kg_number.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/at_kg_number",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/at_kg_number.json"
  }
}