safapi: Locality Description for Austria

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

Description

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.

Usage

1
2
safapi(lng, lat, layers, format = "txt", service = "geoapi",
       server = "api.standortsanalyse.net", key = "574nd0r754n4ly53", sp = FALSE)

Arguments

lng

Latitude. Geographic coordinates (e.g. 14.136882)

lat

Longitude. Geographic coordinates (e.g. 47.510895)

layers

Possible case insensitive choices are: bundesland, bezirk, gemeinde, gebirge, msm, quadrant,corine, and gzert. If missing all layers are queried. Argument(s) may be abbreviated.

format

One out of "txt", "csv", "json".

service

Currently only a single service is available.

server

Url of server. Currently there is no DSN available.

key

API key.

sp

If TRUE return spatial object as defined in sp; needs package rdal.

Details

Nothing here yet.

Value

Depending on argument format a charactarer vector, a list, or if sp=TRUE a SpatialPointsDataFrame.

Author(s)

Roland Kaiser

See Also

bergfex

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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)

kardinal-eros/sabotag-tools documentation built on May 20, 2019, 7:21 a.m.