---
id: "gb_community_safety_partnership_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Community safety partnership code (England and Wales, GSS)"
regexp: "^(?:E22|W14)\\d{6}$"
categories: ["geo"]
country: ["GB"]
langs: ["en"]
quality: 85
url: "https://registry.apicrafter.io/datatype/gb_community_safety_partnership_code"
---

# Community safety partnership code (England and Wales, GSS) (`gb_community_safety_partnership_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.

GSS code of a community safety partnership, the statutory partnership of councils, police and other bodies that reduces crime in an area (CSPyyCD): E22 in England, W14 in Wales.

- Parent datatype: [`ukgsscode`](https://registry.apicrafter.io/datatype/ukgsscode.md)
- Personal data (PII): no
- Categories: Geographic identifiers (geo)
- Countries: United Kingdom (GB)
- Languages: English (en)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^(?:E22|W14)\d{6}$
```

## Examples

- `E22000221` — Community safety partnership
- `W14000001` — Community safety partnership in Wales
- `E23000001` (invalid example) — A police force area code (E23)

## Metacrafter rules

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

- `gbcommunitysafetypartnershipcodevalue` (data, `gb/gb_geo.yaml`)

## Supported by tools

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

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/ONS_coding_system>
- doc: <https://www.ons.gov.uk/methodology/geography/geographicalproducts/namescodesandlookups/codehistorydatabasechd>

## Quality

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

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