Open ThomasKnecht opened 4 years ago
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?
Once we have this data, we can check that all mapping tables produce the correct mapping between all pairs of years.
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.
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.
Link: https://www.bfs.admin.ch/bfs/de/home/statistiken/regionalstatistik/regionale-portraets-kennzahlen/gemeinden.html