List stations for a provider
Arguments
- x
A
hydro_serviceobject created byhydro_service().- ...
Passed to provider-specific methods.
Examples
# Offline: enumerate providers (no network)
s <- hydro_services()
head(names(s))
#> [1] "provider_id" "provider_name" "country" "base_url"
#> [5] "license" "license_link"
if (FALSE) { # interactive() && requireNamespace("curl", quietly = TRUE) && curl::has_internet() && identical(Sys.getenv("HYDRO_EXAMPLES"), "true")
# Online (opt-in): fetch stations
x <- hydro_service("SE_SMHI")
st <- stations(x)
head(st)
}