safapi | R Documentation |
Query Standortsanalyse server to get locality description for a given longitude and latitude. safapi
stands for Standorts-Analyse-Fundort-API. The server infrastructure is kindly provided by Albin Blaschka.
safapi(lng, lat, layers, format = "txt", service = "geoapi",
server = "api.standortsanalyse.net", key = "574nd0r754n4ly53", sp = FALSE)
lng |
Latitude. Geographic coordinates (e.g. 14.136882) |
lat |
Longitude. Geographic coordinates (e.g. 47.510895) |
layers |
Possible case insensitive choices are: |
format |
One out of |
service |
Currently only a single service is available. |
server |
Url of server. Currently there is no DSN available. |
key |
API key. |
sp |
If |
Nothing here yet.
Depending on argument format
a charactarer vector, a list, or if sp=TRUE
a SpatialPointsDataFrame.
Roland Kaiser
bergfex
r <- safapi(13, 47, format = "csv")
str(r)
r <- safapi(13, 47, c("gebirge", "quadrant"), "txt")
str(r)
r <- safapi(13, 47, c("geb", "q"), "json")
str(r)
r <- safapi(13, 47, c("geb", "q"), "json", sp = TRUE)
require(maps)
map(regions = 'Austria')
plot(r, add = TRUE, col = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.