R/get_hystreet_station_data.R
get_hystreet_station_data.Rd
Get data from a specific location from the Hystreet Project via Hystreet API
get_hystreet_station_data(
hystreetId = NULL,
query = NULL,
no_metadata = FALSE,
API_token = NULL
)
integer (required): ID of the requested station. See get_hystreet_locations()
for an overview of
available IDs.
list (optional): A list with queries. Up do date the following queries are supported:
from: datetime of earliest measurement (default: today 00:00:00:): e.g. "2018-10-01 12:00:00" or "2018-10-01"
to : datetime of latest measurement (default: today 23:59:59): e.g. "2018-01-12 12:00:00" or "2018-12-01"
resolution: Resolution for the measurement grouping (default: hour): "day", "hour", "month", "week"
logical (optional): If set to TRUE
, the result contains no meta data but only a clean data frame
with the measurements of the requested station. Defaults to FALSE
.
character (optional): API key to get access to Hystreet API
data.frame with parsed data from hystreet API
0.0.3
if (FALSE) {
## request data of the current day of station with hystreetId 71
get_hystreet_station_data(71)
## request data of December 2018 with resolution "day"
get_hystreet_station_data(
hystreetId = 71,
query = list(from = "2018-12-01", to = "2018-12-31", resolution = "day"))
}