list_communes
List all communes of a Swiss canton for a specific date, including official BFS numbers and LINDAS URIs.
Instructions
List all communes of a canton, as of a given date.
Canton membership is derived from the snapshot's Parent chain
(commune → district → canton), so this reflects the official division
on valid_at_date. Each entry carries its BFS number and LINDAS URI.
Args: params (ListCommunesInput): - canton (str): abbreviation ('ZH') or name ('Zürich') - valid_at_date (str): ISO date; default today
Returns:
ListCommunesResult with the canton's communes, sorted by BFS
number. On error, error and hint are set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| note | No | ||
| error | No | ||
| total | No | ||
| canton | No | ||
| source | No | Amtliches Gemeindeverzeichnis der Schweiz (BFS) — https://www.bfs.admin.ch/bfs/de/home/grundlagen/agvch.html. Open Government Data, freie Weiterverwendung. | |
| communes | No | ||
| provenance | No | ||
| canton_abbr | No | ||
| valid_at_date | No |