catr_ovc_get_rccoor: OVCCoordenadas: Reverse geocode coordinates

View source: R/ovc-rccoor.R

catr_ovc_get_rccoorR Documentation

OVCCoordenadas: Reverse geocode coordinates

Description

Query the OVCCoordenadas Consulta RCCOOR service to retrieve the cadastral reference associated with a pair of coordinates.

Usage

catr_ovc_get_rccoor(lat, lon, srs = 4326, verbose = FALSE)

Arguments

lat

Y coordinate for the query, expressed in the SRS/CRS defined by srs. For geographic coordinates, this is the latitude.

lon

X coordinate for the query, expressed in the SRS/CRS defined by srs. For geographic coordinates, this is the longitude.

srs

SRS/CRS to use in the query. To see allowed values, use catr_srs_values, specifically the ovc_service column.

verbose

Logical. Whether to display informational messages.

Details

If the API returns no results or reports an error, the result is a tibble containing only query information.

On a successful query, this function returns a tibble with one row per cadastral reference, including the following columns:

  • geo.xcen, geo.ycen, geo.srs: Input arguments of the query.

  • refcat: Cadastral reference.

  • address: Address as recorded in the Spanish Cadastre.

  • Remaining fields: See the API documentation.

Value

A tibble as described in Details. Returns NULL if the request fails.

References

Consulta RCCOOR.

See Also

catr_ovc_get_rccoor_distancia() also searches a nearby area when no exact match is found. catr_wfs_get_parcels_parcel() retrieves parcel geometries using the returned cadastral references.

Work with cadastral references: catr_ovc_get_cpmrc(), catr_ovc_get_rccoor_distancia()

Query OVC web services: catr_ovc_get_cod_munic(), catr_ovc_get_cod_provinces(), catr_ovc_get_cpmrc(), catr_ovc_get_rccoor_distancia()

Examples



catr_ovc_get_rccoor(
  lat = 38.6196566583596,
  lon = -3.45624183836806,
  srs = 4326
)



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