construct_query | R Documentation |
Constructs the queries to get the data. Most importantly, splits it into
small enough chunks for the API with mk_time_seq()
.
construct_query(apikey, start, end, station_id, params, type)
apikey |
An optional fmi-apikey. See http://en.ilmatieteenlaitos.fi/open-data-manual. |
start |
Start time as a POSIXt-object obtained with e.g. lubridate::as_datetime(). |
end |
End time as a POSIXt-object. Defaults to |
station_id |
The weather station id. Defaults to |
params |
Query parameters, a comma separated string, such as
|
type |
Type of the query, must be one of the following:
|
A list queries; one for each time chunk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.