resolve_historical_commune
Map a historical BFS commune number to today's commune(s) after mergers or renames. Get current numbers and mutation path to re-key old statistics onto the current municipal division.
Instructions
Map a historical BFS commune number onto today's number(s).
This is the core value of the reference layer: when old statistics are
keyed on a BFS number that has since been merged or renamed, this tool
returns which of today's commune(s) that number resolves to, plus the
mutation path (fusions/renamings with dates). Use resolves_to to
re-key (umschlüsseln) old figures onto the current municipal division.
Args: params (ResolveHistoricalCommuneInput): - bfs_number (int): historical BFS number - from_date (str): ISO date the old data belongs to - to_date (str): ISO target date (default today)
Returns:
ResolveHistoricalCommuneResult with resolves_to (today's BFS
number/name/LINDAS URI) and mutation_path. On error, error/hint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| note | No | ||
| error | No | ||
| source | No | Amtliches Gemeindeverzeichnis der Schweiz (BFS) — https://www.bfs.admin.ch/bfs/de/home/grundlagen/agvch.html. Open Government Data, freie Weiterverwendung. | |
| to_date | No | ||
| from_date | No | ||
| unchanged | No | ||
| bfs_number | No | ||
| provenance | No | ||
| resolves_to | No | ||
| mutation_path | No |