Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get municipality data (area/pop) from BFS for 2012 and later #18

Open
ThomasKnecht opened this issue Jan 27, 2020 · 6 comments
Open

Get municipality data (area/pop) from BFS for 2012 and later #18

ThomasKnecht opened this issue Jan 27, 2020 · 6 comments
Assignees
Milestone

Comments

@ThomasKnecht
Copy link
Contributor

  • Function that automatically downloads the data every year?
  • exists an API for the dataset?

Link: https://www.bfs.admin.ch/bfs/de/home/statistiken/regionalstatistik/regionale-portraets-kennzahlen/gemeinden.html

@krlmlr
Copy link
Collaborator

krlmlr commented Mar 19, 2021

@krlmlr krlmlr transferred this issue from cynkra/SwissHistMunData Mar 19, 2021
@TSchiefer TSchiefer added this to the 0.2.0 milestone Mar 19, 2021
@TSchiefer
Copy link
Member

Seems to me that neither area not population data are included in the output of this API.
I also wasn't successful in finding another place where we'd be able to automatically get this information.
Would you have an idea or know someone who might know more?

@krlmlr
Copy link
Collaborator

krlmlr commented Mar 31, 2021

https://opendata.swiss/de ?

@krlmlr
Copy link
Collaborator

krlmlr commented Nov 30, 2021

Once we have this data, we can check that all mapping tables produce the correct mapping between all pairs of years.

@TSchiefer
Copy link
Member

Once we have this data, we can check that all mapping tables produce the correct mapping between all pairs of years.

We already have the function load_bfs_mun_list() (using the REST API mentioned above), that we could use for checking the correct mapping, I think.

@TSchiefer
Copy link
Member

Some tests are already using this function (https://github.com/cynkra/munch/blob/main/tests/testthat/test-download_mun_list_by_year.R, https://github.com/cynkra/munch/blob/main/tests/testthat/test-external-consistency.R), but admittedly querying the API makes testing rather slow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants