Skip to contents

List flood gauge locations

Usage

hochwasserzentralen_lagepegel(safe = TRUE, refresh = FALSE)

Arguments

safe

Logical; if TRUE (default), apply rate-limiting and cache GET responses to tools::R_user_dir("bunddev", "cache").

refresh

Logical; if TRUE, ignore cached responses and re-fetch from the API (default FALSE).

Value

A tibble with one row per gauge location. Columns are created dynamically from the upstream service response fields. If the response contains GeoJSON features, each feature's properties are used as columns; otherwise each top-level field becomes a column. Scalar values become atomic columns and nested structures become list-columns.

Details

Returns latitude/longitude coordinates for all pegel identifiers available in the hochwasserzentralen.de portal. API documentation: https://bundesapi.github.io/hochwasserzentralen-api/.

Examples

if (FALSE) { # \dontrun{
hochwasserzentralen_lagepegel()
} # }