View source: R/get_osm_from_cache.R
get_osm_from_cache | R Documentation |
Given one or more gemeente's, read the file osm_<gemeente>.rds
either from a local cache folder, or from a shared mount on Rstudio Connect.
If the file does not yet exist, it is downloaded and placed in the cache.
Much preferred to the previous use of e.g. 'data_public/.../osm...rds' because
we can reuse the same (up to date!) copy of the GEO tables, and we do not have
to redeploy an application if only these layers have updated.
get_osm_from_cache(gemeentes, cache_folder = "cache", ...)
gemeentes |
Vector of gemeente naam to download/read |
cache_folder |
The local folder to use for caching. Ignored on rsconnect, where a fixed path is used ("/data/bag" is a share on rsconnect dev and prod). |
... |
Further arguments to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.