Skip to contents

Create a database containing the urls provided in the INSPIRE ATOM service for extracting Addresses.

Usage

catrnav_atom_get_address_db_all(
  cache = TRUE,
  update_cache = FALSE,
  cache_dir = NULL,
  verbose = FALSE
)

Arguments

cache

A logical whether to do caching. Default is TRUE. See About caching section on catrnav_set_cache_dir().

update_cache

A logical whether to update cache. Default is FALSE. When set to TRUE it would force a fresh download of the source file.

cache_dir

A path to a cache directory. On missing value the function would store the cached files on a temporary dir (See base::tempdir()).

verbose

Logical, displays information. Useful for debugging, default is FALSE.

Value

A tibble with the information requested:

  • munic: Name of the municipality.

  • url: url for downloading information of the corresponding municipality.

  • date: Reference date of the data.

Examples

# \donttest{
catrnav_atom_get_address_db_all()
#> # A tibble: 272 × 3
#>    munic                            url                               date      
#>    <chr>                            <chr>                             <date>    
#>  1 001 Abáigar                      https://filescartografia.navarra… 2025-04-14
#>  2 002 Abárzuza / Abartzuza         https://filescartografia.navarra… 2025-04-14
#>  3 003 Abaurregaina / Abaurrea Alta https://filescartografia.navarra… 2025-04-14
#>  4 004 Abaurrepea / Abaurrea Baja   https://filescartografia.navarra… 2025-04-14
#>  5 005 Aberin                       https://filescartografia.navarra… 2025-04-14
#>  6 006 Ablitas                      https://filescartografia.navarra… 2025-04-14
#>  7 007 Adiós                        https://filescartografia.navarra… 2025-04-14
#>  8 008 Aguilar de Codés             https://filescartografia.navarra… 2025-04-14
#>  9 009 Aibar / Oibar                https://filescartografia.navarra… 2025-04-14
#> 10 010 Altsasu / Alsasua            https://filescartografia.navarra… 2025-04-14
#> # ℹ 262 more rows
# }