Description Usage Arguments Details Value Author(s) See Also Examples
Query data("BEV", package "sabotagdata")
to get locality description for given coordinates.
1 | geocode.austria(x, p = 100, sp = FALSE, bergfex = FALSE, ...)
|
x |
Object of class SpatialPointsDataFrame. |
p |
Value for accuracy estimate. The function searches for a column named “accuracy” or “precision” in |
sp |
Return SpatialPointsDataFrame. |
bergfex |
Also query |
... |
Not used. |
The function returns a string composed of country (Staat), state (Bundesland), district (Bezirk) and municiplaity (politische Gemeinde) aswell as a formated coordinate and elevation description. It is espaecially tailored for the region of Austria (and it's neighbouring countries). Setting bergfex = TRUE
will addditionally append a local toponym. The function will work only if you have set your geonames username with options(geonamesUsername="myusernamehere")
. You will need to create an account at http://www.geonames.org/login/.
A data.frame
or SpatialPointsDataFrame
with CRS("+init=epsg:4326")
.
Roland Kaiser
1 2 3 4 5 6 7 8 9 10 | x <- data.frame(accuracy = 10, x = 10:16, y = 48)
coordinates(x) <- ~x+y
proj4string(x) <- CRS("+init=epsg:4326")
# for the following to work options()$geonamesUsername
# should return a valid user name
## Not run:
geocode.austria(x)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.