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

# UK postal code by field name (for property identification) (`gbpostcode`)

UK postal code by field name (for property identification) identifier

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

## Detection

Regular expression (Python `re`):

```
^[0-9]{4,10}$
```

## Mappings

- dpv: `pd:PostalCode`
- schema_org: `postalCode`

## Metacrafter rules

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

- `gbpostcodefield` (field, `gb/gb_realestate.yaml`)
- `gbpostcodevalue` (data, `gb/gb_realestate.yaml`)

## Supported by tools

- `metacrafter`

## Quality

Score 60/100. Missing: examples, negative example, source link, translation.

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