---
id: "ng_ward_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Nigerian ward code"
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}$"
categories: ["geo", "government"]
country: ["NG"]
langs: ["common"]
quality: 85
url: "https://registry.apicrafter.io/datatype/ng_ward_code"
---

# Nigerian ward code (`ng_ward_code`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

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 datatype: [`id`](https://registry.apicrafter.io/datatype/id.md)
- Personal data (PII): no
- Categories: Geographic identifiers (geo), Government related (government)
- Countries: Nigeria (NG)
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^(?: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

- `KD0101` — Gayam, Birnin Gwari LGA, Kaduna State
- `KD0201` — Chikun ward, Chikun LGA (19002), Kaduna State
- `E05000026` (invalid example) — a ward code of the United Kingdom (ukwardcode)

## Metacrafter rules

1 rules: 1 match the field name, 0 match values.

- `ngwardcodebyname` (field, `ng/ng_geo.yaml`)

## Supported by tools

- [`metacrafter`](https://registry.apicrafter.io/tool/metacrafter.md)

## Sources

- doc: <https://energydata.info/dataset/nigeria-kaduna-electricity-distribution-company-service-area-settlements-dataset-2016>
- doc: <https://grid3.org/>

## Quality

Score 85/100. Missing: mapping (Wikidata, Schema.org, ...), translation.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/ng_ward_code.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/NG/geo/ng_ward_code.yaml>
