---
id: "gg_postcode"
kind: "pattern"
status: "draft"
is_pii: true
categories: ["geo", "pii", "common"]
country: ["GG"]
langs: ["en"]
quality: 75
url: "http://registry.apicrafter.io/datatype/gg_postcode"
---

# Guernsey postal code (`gg_postcode`)

> **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.

Postal code in Guernsey: the letters GY, a digit and an optional digit or letter, an optional space, then a digit and two letters. Guernsey, Alderney and Sark form the GY postcode area.

- Pattern of: `postindex`
- Personal data (PII): yes
- Categories: Geographic identifiers (geo), Personally identifiable information (pii), Common (common)
- Countries: Guernsey (GG)
- Languages: English (en)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^GY\d[\dA-Z]? ?\d[ABD-HJLN-UW-Z]{2}$
```

## Examples

- `GY1 1AA`
- `GY2 2BT`
- `GY1 1A` (invalid example) — too short

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/GY_postcode_area>
- other: <https://chromium-i18n.appspot.com/ssl-address/data/GG>

## Quality

Score 75/100. Missing: mapping (Wikidata, Schema.org, ...), translation, detector coverage.

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