catr_atom_search_munic: ATOM INSPIRE: Search for municipality codes

View source: R/atom-search.R

catr_atom_search_municR Documentation

ATOM INSPIRE: Search for municipality codes

Description

Search for a municipality by name or code and return matching Spanish Cadastre municipality codes.

Usage

catr_atom_search_munic(
  munic,
  to = NULL,
  cache = deprecated(),
  update_cache = FALSE,
  cache_dir = NULL,
  verbose = FALSE
)

Arguments

munic

Municipality name, partial name or cadastral code. Use catr_atom_search_munic() to find cadastral codes.

to

Optional territorial office containing munic. Use this argument to narrow the search.

cache

[Deprecated] This argument is no longer supported because results are always cached.

update_cache

Logical. Whether to refresh the cached file. Defaults to FALSE.

cache_dir

Path to a cache directory. If NULL or FALSE, the function stores cached files in a temporary directory. See base::tempdir().

verbose

Logical. Whether to display informational messages.

Value

A tibble with the territorial office, municipality name and cadastral code. Returns NULL if the data cannot be retrieved or no match is found.

See Also

catr_atom_get_address(), catr_atom_get_buildings() and catr_atom_get_parcels() accept the returned cadastral municipality code as munic. catr_get_code_from_coords() finds that code from coordinates.

Search for cadastral identifiers: catr_get_code_from_coords(), catr_ovc_get_cod_munic(), catr_ovc_get_cod_provinces()

Query ATOM INSPIRE services: catr_atom_get_address(), catr_atom_get_address_db_all(), catr_atom_get_buildings(), catr_atom_get_buildings_db_all(), catr_atom_get_parcels(), catr_atom_get_parcels_db_all()

Examples



catr_atom_search_munic("Mad")



CatastRo documentation built on Oct. 5, 2026, 5:07 p.m.