If a map needs to be downloaded as a shapefile then it is stored temporarily. The location of this download directory can be set as option("arear.download.dir" = "~/.)

getMap(mapId, sources = .loadSources(...), codeType = mapId, ...)

Arguments

mapId

- a name of a map

sources

- a list of map sources - see `getOption("arear.mapsources",arear::mapsources)``

codeType

- defaults to mapId, the codeType of the map

...

- passed to .cache, param `nocache=TRUE` to disable caching

Value

a standard sf map

Examples

if (FALSE) {
map = getMap("NHSER20")
}