Datatypes › Switzerland › Geographic identifiers
Swiss municipality number (BFS-Nr.)
ID ch_bfs_gemeinde
DatatypeNot PIIidentifierDraft
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
Number of one to four digits that the Swiss Federal Statistical Office assigns to each municipality.
- Parent datatype
- Unique identifier
id - Categories
- Geographic identifiers
- Countries
- Switzerland
- Languages
- Common to most languages
- Wikidata
- P771
- Quality
- 90/100 · missing: negative example, translation
- Metacrafter rules
- 2 rules (2 by field name, 0 by value)
chbfsgemeindebynamefield, ch/ch_geo.yamlchbfsgemeindeknownfield, ch/ch_geo.yaml
- Supported by tools
- metacrafter
Regular expression
^[1-9]\d{0,3}$
Python re syntax.
Test a value
Examples
| Value | Description |
|---|---|
| 5268 | Vacallo |
| 5478 | Cottens |
Sources
- wikipedia: Gemeindenummer (de.wikipedia.org)
- wikidata: wikidata.org/wiki/Property:P771
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/ch_bfs_gemeinde - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/CH/geo/ch_bfs_gemeinde.yamlon GitHub