#' @field endpoint object of class \code{Endpoint} as returned by \code{as.Endpoint}
#' @field stations object of class \code{citizenair_stations} as returned by \code{\link{read_stations}}
#' @field data object of class \code{citizenair_userdata} as returned by \code{\link{read_citizenair}}
#' @field closest_station a character string with the id of the closest station.
#' @format The CitizenAir object is an R6Class
#' @section Methods:
#' \describe{
#' \item{\code{fetch_timeseries(id = "123", time_span)}}{Get timeseries for Station with \code{id} and a certain time_span The argument \code{timespan.} Passed on to \code{sensorweb4R::getData}}
#' \item{\code{getStations()}}{Get a SpatialPointsDataFrame of all stations}
\item{\code{stations}}{object of class \code{citizenair_stations} as returned by \code{\link{read_stations}}}
\item{\code{data}}{object of class \code{citizenair_userdata} as returned by \code{\link{read_citizenair}}}
\item{\code{closest_station}}{a character string with the id of the closest station.}
}}
\section{Methods}{
...
...
@@ -26,6 +28,7 @@ CitizenAir app data
\describe{
\item{\code{fetch_timeseries(id = "123", time_span)}}{Get timeseries for Station with \code{id} and a certain time_span The argument \code{timespan.} Passed on to \code{sensorweb4R::getData}}
\item{\code{getStations()}}{Get a SpatialPointsDataFrame of all stations}
\item{TODO}{TODO}
}
}
...
...
@@ -34,12 +37,19 @@ library(sensorweb4R)
e <- as.Endpoint("http://geo.irceline.be/sos/api/v1")