Description Usage Arguments Details Value Warning Note Author(s) See Also Examples
Performs reverse geocoding using function revgeocode
of package ggmap.
1 2 3 4 5 | ## S4 method for signature 'Vegsoup'
reverseGeocode(x, ...)
## S4 method for signature 'SpatialPointsDataFrame'
reverseGeocode(x, ...)
|
x |
vegsoup or SpatialPointsDataFrame object. |
... |
not used. |
The function returns a formatted string of coordinates including elevation (as returned by GNsrtm3
of package geonames.) and a locality description based on administrative units. The SpatialPointsDataFrame method seeks variables "accuracy"
or "precision"
from the object.
In order to be able to use the geonames package you will need to create a user (see geonames
). In the authorization step, don't forget to activate free web services!
A modified vegsoup object with two additional columns "coordinate.string"
and "locality"
or a matrix holding the former variables.
Make sure that the object has a column named "horizontal.precision"
in order to obtain coordinates uncertainty. The method will overwrite existing columns named "coordinate.string"
and "locality"
if already present.
Projection is assumed to be longitude/latitude (e.g. CRS("+init=epsg:4326")
). Use spTransform
for reprojection if necessary.
Roland Kaiser
1 | # Nothing here yet
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.