Skip to contents

Searches for a municipality by name or cadastral code in the Cadastre of Navarre ATOM index.

Usage

catrnav_atom_search_munic(
  munic,
  cache = TRUE,
  update_cache = FALSE,
  cache_dir = NULL,
  verbose = FALSE
)

Arguments

munic

Municipality name, partial name or cadastral code to search for.

cache

A logical value indicating whether to use cached files. Defaults to TRUE.

update_cache

Logical. Should the cached file be refreshed? Defaults to FALSE. When set to TRUE, it forces a new download.

cache_dir

Path to a cache directory. On NULL, the function stores cached files in a temporary directory (see base::tempdir()).

verbose

Logical. If TRUE, displays informational messages.

Value

A tibble with the municipality name and cadastral code, or NULL if no match is found.

Examples

catrnav_atom_search_munic("Pamplona")
#> # A tibble: 1 × 2
#>   munic                catrcode
#>   <chr>                <chr>   
#> 1 201 Pamplona / Iruña 201