View source: R/get_cartociudad_location_info.R
get_cartociudad_location_info | R Documentation |
Returns the administrative information related to a geographical point in Spain: province, municipality, censal district, censal section, cadastral reference and reverse geocoding data.
get_cartociudad_location_info(latitude, longitude, year = 2016, info.source = c("census", "cadastre", "reverse"))
latitude |
Point latitude in geographical coordinates (e.g., 40.473219) |
longitude |
Point longitude in geographical coordinates (e.g., -3.7227241) |
year |
Reference year; see Details section |
info.source |
A character vector specifying the APIs to consult. Possible values are "census", "cadastre" and "reverse" |
This function consults administrative information for a point within Spain. Censal information is consulted from a different set of layers, each one corresponding to a different year. Whereas provincial and municipal information is mostly stable, censal districts and sections may be subject to greater changes over the years.
A list contaning the administrative information for the given point.
For info.source = "census"
it contains the province, municipality,
censal discrict and censal section codes. For info.source =
"cadastre"
it contains the cadastral reference and the url to the spanish
cadastre website. For info.source = "reverse"
it contains the
details of the address closest to the specified location, such us road
type, number, zip code, street name, ... More information about reverse
geocoding in cartociudad_reverse_geocode
.
Luz FrÃas with small edits by Carlos J. Gil Bellosta
INE's web service is mostly undocumented and the function has been built by reverse engineering API calls. However, users may want to check the capabilities of INEs WMS service at http://goo.gl/aKn3vj. Cadastre web service documentation can be consulted at http://goo.gl/lKkwK and WMS service capabilities at http://goo.gl/5JAd9N.
## Not run: get_cartociudad_location_info(40.473219, -3.7227241) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.