get_ecoulement function

Retrieve data from API "Ecoulement des cours d'eau"

Retrieve data from API "Ecoulement des cours d'eau"

The data originate from the "ONDE" river low waters monitoring network. Available endpoints are:

  • get_ecoulement_stations retrieves site data and locations
  • get_ecoulement_observations retrieves flow information
  • get_ecoulement_campagnes retrieves annual surveys

See the API documentation for available filter parameters: https://hubeau.eaufrance.fr/page/api-ecoulement

get_ecoulement_stations(...) get_ecoulement_observations(...) get_ecoulement_campagnes(...)

Arguments

  • ...: parameters of the queries and their values in the format Param1_Name = "Param1 value", Param2_Name = "Param2 value", use the function list_params for a list of the available filter parameters for a given API endpoint and see the API documentation for their description

Returns

A tibble::tibble with one row by record and one column by field.

Examples

## Not run: # Retrieve 2022 observation campaigns in the Jura French department get_ecoulement_campagnes( list(code_departement = "39", date_campagne_min = "2022-01-01", date_campagne_max = "2022-12-31") ) # Retrieve river stations stations_39 <- get_ecoulement_stations( list(code_departement = "39", fields = "code_station,libelle_cours_eau,libelle_commune") ) stations_39 # Get the query parameters for the requested API/endpoint list_params(api = "ecoulement", endpoint = "observations") # Retrieve the river flow data in the Jura departement in 2022 with # a selection of the fields onde_39 <- get_ecoulement_observations( list(code_departement = "39", date_observation_min = "2022-01-01", date_observation_max = "2022-12-31", fields = "code_station,libelle_station,date_observation,libelle_ecoulement") ) onde_39 ## End(Not run)
  • Maintainer: David Dorchies
  • License: MIT + file LICENSE
  • Last published: 2024-03-04