fmi_api | R Documentation |
Requests to FMI API.
fmi_api(request, storedquery_id = NULL, ...)
request |
character request type of either |
storedquery_id |
character id of the stored query id. If |
... |
stored query specific parameters. NOTE: it's up to the high-level functions to check the validity of the parameters. |
Make a request to the FMI API. The base url is opendata.fmi.fi/wfs?service=WFS&version=2.0.0 to which other components defined by the arguments are appended.
This is a low-level function intended to be used by other higher level functions in the package.
Note that GET requests are used using httpcache
meaning that requests
are cached. If you want clear cache, use httpcache::clearCache()
. To turn
the cache off completely, use httpcache::cacheOff()
fmi_api (S3) object with the following attributes:
XML payload.
path provided to get the resonse.
the original response object.
Joona Lehtomäki joona.lehtomaki@iki.fi
# List stored queries
fmi_api(request = "DescribeStoredQueries")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.