Description Usage Arguments Details Value Author(s) See Also Examples
Query Bergfex server to get locality description for a given longitude and latitude, or query toponym for coordinates.
1 2 3 |
lng |
Latitude. Geographic coordinates (e.g. 14.136882) |
lat |
Longitude. Geographic coordinates (e.g. 47.510895) |
q |
Query string. |
sp |
If |
first |
If |
x |
Object of class |
Function bergfex
provides a single coordinate pair interface. bergfex2
allows the query to be based on a SpatialPointsDataFrame
.
A list
or SpatialPointsDataFrame
with CRS("+init=epsg:4326")
.
Roland Kaiser
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## Not run:
r <- bergfex(lng = 14.642202, lat = 47.530278, sp = FALSE)
class(r)
str(r)
r <- bergfex(lng = 14.642202, lat = 47.530278, sp = TRUE)
class(r)
head(r@data)
bergfex(lng = 14.642202, lat = 47.530278, first = TRUE, sp = FALSE)
r <- bergfex(q = "Kölblalm", sp = TRUE)
head(r@data)
coordinates(r)
bergfex(q = "Schwaitlalm", sp = FALSE, first = TRUE)
x <- data.frame(accuracy = 10, x = 13:16, y = 48)
coordinates(x) <- ~x+y
proj4string(x) <- CRS("+init=epsg:4326")
bergfex2(x)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.