---
id: "ch_canton_code"
kind: "pattern"
status: "draft"
is_pii: false
categories: ["geo", "government"]
country: ["CH"]
quality: 100
url: "http://registry.apicrafter.io/datatype/ch_canton_code"
---

# Swiss canton abbreviation (`ch_canton_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.

Two-letter abbreviation of a Swiss canton, such as ZH (Zürich), BE (Bern) or TI (Ticino). It is used on vehicle plates and in ISO 3166-2:CH after CH-.

- Pattern of: `ch_canton`
- Personal data (PII): no
- Categories: Geographic identifiers (geo), Government related (government)
- Countries: Switzerland (CH)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^(?:AG|AI|AR|BE|BL|BS|FR|GE|GL|GR|JU|LU|NE|NW|OW|SG|SH|SO|SZ|TG|TI|UR|VD|VS|ZG|ZH)$
```

## Examples

- `ZH` — Zürich
- `GE` — Geneva
- `TI` — Ticino
- `CH` (invalid example) — the country code

## Mappings

- fta: `STATE_PROVINCE.CANTON_CH`

## Supported by tools

- `fta`

## Translations

- ru: Сокращение кантона Швейцарии

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Cantons_of_Switzerland>
- other: <https://github.com/tsegall/fta/blob/main/SemanticTypes.md>

## Quality

Score 100/100.

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