
OVCCoordenadas: Reverse geocode cadastral references on a region
Source:R/ovc_rccoor_distancia.R
catr_ovc_get_rccoor_distancia.Rd
Implementation of the OVCCoordenadas service Consulta_RCCOOR_Distancia. Return the cadastral reference found on a set of coordinates. If no cadastral references are found, the API returns a list of the cadastral references found on an area of 50 square meters around the requested coordinates.
Arguments
- lat
Latitude to use on the query. It should be specified in the same in the CRS/SRS
specified
bysrs
.- lon
Longitude to use on the query. It should be specified in the same in the CRS/SRS
specified
bysrs
.- srs
SRS/CRS to use on the query. To check the admitted values check catr_srs_values, specifically the
ovc_service
column.- verbose
Logical, displays information. Useful for debugging, default is
FALSE
.
Details
When the API does not provide any result, the function returns a tibble with the input parameters only.
On a successful query, the function returns a tibble with one row by cadastral reference, including the following columns:
geo.xcen
,geo.ycen
,geo.srs
: Input parameters of the query.refcat
: Cadastral Reference.address
: Address as it is recorded on the Cadastre.cmun_ine
: Municipality Code as registered on the INE (National Statistics Institute).Rest of fields: Check the API Docs on Consulta_RCCOOR_Distancia
See also
catr_srs_values, vignette("ovcservice")
OVCCoordenadas API:
catr_ovc_get_cpmrc()
,
catr_ovc_get_rccoor()
,
catr_srs_values
Other cadastral references:
catr_ovc_get_cpmrc()
,
catr_ovc_get_rccoor()
Examples
# \donttest{
catr_ovc_get_rccoor_distancia(
lat = 40.963200,
lon = -5.671420,
srs = 4326
)
#> # A tibble: 7 × 14
#> geo.xcen geo.ycen geo.srs refcat address cmun_…¹ pc.pc1 pc.pc2 dt.lo…² dt.lo…³
#> <dbl> <dbl> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 -5.67 41.0 EPSG:4… 52838… CL SAN… 37274 52838… TL735… 37 274
#> 2 -5.67 41.0 EPSG:4… 52838… CT SAN… 37274 52838… TL735… 37 274
#> 3 -5.67 41.0 EPSG:4… 52834… CL SAN… 37274 52834… TL735… 37 274
#> 4 -5.67 41.0 EPSG:4… 53838… CT SAN… 37274 53838… TL735… 37 274
#> 5 -5.67 41.0 EPSG:4… 53848… CL GAR… 37274 53848… TL735… 37 274
#> 6 -5.67 41.0 EPSG:4… 53838… CL ENC… 37274 53838… TL735… 37 274
#> 7 -5.67 41.0 EPSG:4… 52838… CL SAN… 37274 52838… TL735… 37 274
#> # … with 4 more variables: dt.lourb.dir.cv <chr>, dt.lourb.dir.pnp <chr>,
#> # ldt <chr>, dis <chr>, and abbreviated variable names ¹cmun_ine,
#> # ²dt.loine.cp, ³dt.loine.cm
# }