powered by
Helperfunction to download the mapdata and unzip them into a user defined location.
DownloadBfSMaps(url = "https://dam-api.bfs.admin.ch/hub/api/dam/assets/21245514/master", path = paste0(path.expand("~"), "/MapData"))
the option entry is returned invisibly
the url for the data (might outdate and must then be redefined).
the path where the data are to be installed.
Andri Signorell <andri@signorell.net>
It is convenient to not be forced to download the data by oneself. This function can be helpful.
if (FALSE) { DownloadBfSMaps() # enter the returned option options(bfsMaps.base="*** your map folder ***") library(bfsMaps) PlotKant("ZH", "blue") }
Run the code above in your browser using DataLab