reverseGeocode: Reverse geocoding

Description Usage Arguments Details Value Warning Note Author(s) See Also Examples

Description

Performs reverse geocoding using function revgeocode of package ggmap.

Usage

1
2
3
4
5
## S4 method for signature 'Vegsoup'
reverseGeocode(x, ...)

## S4 method for signature 'SpatialPointsDataFrame'
reverseGeocode(x, ...)

Arguments

x

vegsoup or SpatialPointsDataFrame object.

...

not used.

Details

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!

Value

A modified vegsoup object with two additional columns "coordinate.string" and "locality" or a matrix holding the former variables.

Warning

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.

Note

Projection is assumed to be longitude/latitude (e.g. CRS("+init=epsg:4326")). Use spTransform for reprojection if necessary.

Author(s)

Roland Kaiser

See Also

coordinates

Examples

1
# Nothing here yet

vegsoup documentation built on Feb. 24, 2021, 3 a.m.