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

# Scottish council area code (GSS) (`gb_scotland_council_area_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 one of the 32 council areas of Scotland, the unitary local authorities, entity code S12. Tables name the column local authority, council area or LA code.

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

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

## Examples

- `S12000030` — Stirling
- `S12000036` — City of Edinburgh
- `S92000003` (invalid example) — The code of Scotland, a country (S92)

## Metacrafter rules

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

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

## Supported by tools

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

## Sources

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

## Quality

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

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