---
id: "gb_scotland_data_zone_code"
kind: "datatype"
status: "draft"
is_pii: false
name: "Scottish data zone code (GSS)"
regexp: "^S01\\d{6}$"
categories: ["geo"]
country: ["GB"]
langs: ["en"]
quality: 85
url: "https://registry.apicrafter.io/datatype/gb_scotland_data_zone_code"
---

# Scottish data zone code (GSS) (`gb_scotland_data_zone_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 data zone, the small-area statistical geography of Scotland, of 500 to 1000 household residents, entity code S01. The 2011 data zones run from S01006506 to S01013481.

- 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`):

```
^S01\d{6}$
```

## Examples

- `S01006556` — Data zone, 2011
- `S01006557` — Data zone, 2011
- `S02001236` (invalid example) — An intermediate zone code (S02)

## Metacrafter rules

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

- `gbscotlanddatazonecodevalue` (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_scotland_data_zone_code.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/GB/geo/gb_scotland_data_zone_code.yaml>
