{
  "id": "ng_ward_code",
  "kind": "datatype",
  "status": "draft",
  "name": "Nigerian ward code",
  "doc": "Code of a political ward of a Nigerian local government area in the settlement data of eHealth Africa and GRID3 for the electricity distribution companies, the two-letter state code (the ISO 3166-2:NG code without the country), the number of the LGA within the state and the number of the ward, two digits each, such as KD0101 for Gayam ward of Birnin Gwari, Kaduna State. Settlement ids add a settlement type and a number (BUA_KD0101_89495).",
  "parent": "id",
  "is_pii": false,
  "categories": [
    "geo",
    "government"
  ],
  "country": [
    "NG"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^(?:AB|AD|AK|AN|BA|BY|BE|BO|CR|DE|EB|ED|EK|EN|FC|GO|IM|JI|KD|KN|KT|KE|KO|KW|LA|NA|NI|OG|ON|OS|OY|PL|RI|SO|TA|YO|ZA)\\d{4}$",
  "examples": [
    {
      "value": "KD0101",
      "description": "Gayam, Birnin Gwari LGA, Kaduna State",
      "valid": true
    },
    {
      "value": "KD0201",
      "description": "Chikun ward, Chikun LGA (19002), Kaduna State",
      "valid": true
    },
    {
      "value": "E05000026",
      "description": "a ward code of the United Kingdom (ukwardcode)",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://energydata.info/dataset/nigeria-kaduna-electricity-distribution-company-service-area-settlements-dataset-2016"
    },
    {
      "type": "doc",
      "url": "https://grid3.org/"
    }
  ],
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "ngwardcodebyname",
        "type": "field",
        "match": "regex",
        "file": "ng/ng_geo.yaml"
      }
    ]
  },
  "quality": {
    "score": 85,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/NG/geo/ng_ward_code.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/NG/geo/ng_ward_code.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/NG/geo/ng_ward_code.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/ng_ward_code",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/ng_ward_code.json"
  }
}