mr_rev_geo_code | R Documentation |
Retrieve the names of geographic objects from coordinates (and optionally a radius around them).
mr_rev_geo_code(lat, lon, lat_radius = 1, lon_radius = 1, ...)
lat |
(numeric) Latitude for the coordinates (decimal format) |
lon |
(numeric) Longitude for the coordinates (decimal format) |
lat_radius |
(numeric) Extends search to include the range from
|
lon_radius |
(numeric) Extends search to include the range from
|
... |
curl options to be passed on to |
If no results, an empty list. If results found, a data.frame with the columns:
MRGID (integer)
gazetteerSource (character)
placeType (character)
latitude (numeric)
longitude (numeric)
minLatitude (numeric)
minLongitude (numeric)
maxLatitude (numeric)
maxLongitude (numeric)
precision (numeric)
preferredGazetteerName (character)
preferredGazetteerNameLang (character)
status (character)
accepted (integer)
Francois Michonneau francois.michonneau@gmail.com
## Not run: # Setting radius to 0.5 mr_rev_geo_code(-21.5, 55.5, lat_radius=0.5, lon_radius=0.5) # radius to 3 mr_rev_geo_code(-21.5, 55.5, lat_radius=3, lon_radius=3) # radius to 1 mr_rev_geo_code(-15, 45, lat_radius=1, lon_radius=1) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.