spod_quick_get_zones | R Documentation |
This function fetches the municipalities (for now this is the only option) geometries from the mapas-movilidad website and returns a sf
object with the municipalities geometries. This is intended for use with the flows data retrieved by the spod_quick_get_od()
function. An interactive web map with this data is available at https://mapas-movilidad.transportes.gob.es/. These municipality geometries only include Spanish municipalities (and not the NUTS3 regions in Portugal and France) and do not contain extra columns that you can get with the spod_get_zones()
function. The function caches the retrieved geometries in memory of the current R session to reduce the number of requests to the mapas-movilidad website.
spod_quick_get_zones(zones = "municipalities")
zones |
A character string specifying the zones to retrieve. Valid values are "municipalities", "muni", "municip", and "municipios". Defaults to "municipalities". |
A sf
object with the municipalities geometries to match with the data retrieved with spod_quick_get_od()
.
municipalities_sf <- spod_quick_get_zones()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.