geocode: Locality Description for Austria's administrative Boundaries

geocodeR Documentation

Locality Description for Austria's administrative Boundaries

Description

Query data("BEV", package "sabotagdata") to get locality description for given coordinates.

Usage

geocode.austria(x, p = 100, sp = FALSE, bergfex = FALSE, ...)

Arguments

x

Object of class SpatialPointsDataFrame.

p

Value for accuracy estimate. The function searches for a column named “accuracy” or “precision” in ⁠x⁠ and, if present, useses the given values.

sp

Return SpatialPointsDataFrame.

bergfex

Also query bergfex server to obtain local toponyms.

...

Not used.

Details

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/.

Value

A ⁠data.frame⁠ or ⁠SpatialPointsDataFrame⁠ with CRS("+init=epsg:4326").

Author(s)

Roland Kaiser

See Also

bergfex

Examples

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)

kardinal-eros/sabotag-tools documentation built on Feb. 6, 2025, 1:12 a.m.