{
  "id": "za_sg_code",
  "kind": "datatype",
  "status": "draft",
  "name": "South African Surveyor-General 21-character code",
  "doc": "Key of a land parcel in the cadastre of the Chief Surveyor-General of South Africa (SG code, LPI code): 21 characters with the letter of the Surveyor-General office (B, C, F, K, N or T), the major region (3 characters), the minor region or township (4 digits, 0000 for farms), the parcel number (8 digits) and the portion (5 digits), such as C03700050000652000000.",
  "is_pii": false,
  "categories": [
    "realestate",
    "geo",
    "identifiers"
  ],
  "country": [
    "ZA"
  ],
  "langs": [
    "en"
  ],
  "classification": "identifier",
  "regexp": "^[BCFKNT][0-9A-Z]{3}\\d{17}$",
  "examples": [
    {
      "value": "C03700050000652000000",
      "description": "Parcel 6520 in the Northern Cape",
      "valid": true
    },
    {
      "value": "C05300370000000100000",
      "valid": true
    },
    {
      "value": "C0370005000065200000",
      "description": "20 characters",
      "valid": false
    },
    {
      "value": "A03700050000652000000",
      "description": "A is not an office letter",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://help.1map.co.za/knowledge/lpi-code-sg21-key"
    }
  ],
  "translations": {
    "ru": {
      "name": "Кадастровый код SG (ЮАР)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "zasgcodevalue",
        "type": "data",
        "match": "regex",
        "file": "za/za_codes.yaml"
      }
    ]
  },
  "quality": {
    "score": 90,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/ZA/realestate/za_sg_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/ZA/realestate/za_sg_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/ZA/realestate/za_sg_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/za_sg_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/za_sg_code.json"
  }
}