Description Usage Arguments Value See Also Examples
Access the WAQI API to query readings for a given set of monitoring stations.
1 |
x, token, uid |
See |
dsn |
Optional target folder for automated |
... |
Additional arguments passed to |
Retrieved readings as data.frame
. Note that stations that could not be
found or were temporarily out of service are not included.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
## spatial extent: bavaria
deu = raster::getData(country = "DEU", level = 1, path = raster::tmpDir())
bay = subset(deu, NAME_1 == "Bayern")
## api token
tkn = keyring::key_get("waqi_api")
## query monitoring stations within spatial extent
stn = inventory(bay, token = tkn)
## query station readings
vls = readings(stn, token = tkn, names = parallel::detectCores() - 1)
vls
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.