Description Usage Arguments Value Examples
get_geodata
retrieves the latest geodata provided by the Federal Statistical Office in connection with federal votes.
1 | get_geodata(geolevel = "municipality", latest = T, verbose = F, call_res)
|
geolevel |
geographical level. Options: "national", "canton", "district", "municipality", "zh_counting_districts" or "lakes". |
latest |
if |
verbose |
if |
call_res |
result of a previous call to the geodata API. Optional argument. |
a simple feature collection of the desired spatial units with corresponding IDs.
1 2 3 4 5 | # Get latest geodata at municipal level
get_geodata()
# Get latest geodata at cantonal level
get_geodata(geolevel = "canton")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.