---
id: "gb_addressbase_classification"
kind: "datatype"
status: "draft"
is_pii: false
name: "AddressBase classification code"
regexp: "^[CLMOPRUXZ](?:[A-Z](?:\\d{2}(?:[A-Z0-9]{2})?)?)?$"
categories: ["realestate", "geo"]
country: ["GB"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/gb_addressbase_classification"
---

# AddressBase classification code (`gb_addressbase_classification`)

> **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 the use of an addressable object (BLPU) in the AddressBase classification scheme of Ordnance Survey and GeoPlace: a letter for the primary class (R residential, C commercial, P parent shell), a second letter (RD dwelling), two digits (RD02 detached house) and, for some codes, two more characters. Local gazetteers give it in BLPU_CLASS or CLASSIFICATION_CODE.

- Personal data (PII): no
- Categories: Real estate (realestate), Geographic identifiers (geo)
- Countries: United Kingdom (GB)
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^[CLMOPRUXZ](?:[A-Z](?:\d{2}(?:[A-Z0-9]{2})?)?)?$
```

## Examples

- `RD02` — Detached house
- `RI01` — Care home
- `PP` — Property shell
- `CR08`
- `12AB` (invalid example)

## Metacrafter rules

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

- `gbaddressbaseclassbyname` (field, `gb/gb_b14.yaml`)

## Supported by tools

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

## Translations

- ru: Код классификации AddressBase

## Sources

- doc: <https://docs.os.uk/os-downloads/addressing-and-location/addressbase-fundamentals/classification-scheme>

## Quality

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

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