---
id: "ukgsscode"
kind: "datatype"
status: "stable"
is_pii: false
categories: ["geo"]
country: ["GB"]
langs: ["en"]
quality: 90
url: "http://registry.apicrafter.io/datatype/ukgsscode"
---

# GSS code (United Kingdom) (`ukgsscode`)

UK GSS (Government Statistical Service) code, the nine-character geographic code used by the Office for National Statistics to identify administrative and statistical geographies across the United Kingdom.

- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: United Kingdom (GB)
- Languages: English (en)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^[EKLMNSW]\d{8}$
```

## Examples

- `E09000025` — London Borough of Newham
- `E08000001` — Bolton
- `W92000004` — Wales

## Mappings

- wikidata: `P836`

## Metacrafter rules

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

- `ukgsscodefield` (field, `gb/gb_geo.yaml`)

## Supported by tools

- `metacrafter`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/ONS_coding_system>
- wikidata: <https://www.wikidata.org/wiki/Property:P836>

## Quality

Score 90/100. Missing: negative example, translation.

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