Get Dashboard Deutschland GeoJSON
Source:R/adapt_dashboard_deutschland.R
dashboard_deutschland_geo.RdGet Dashboard Deutschland GeoJSON
Usage
dashboard_deutschland_geo(
safe = TRUE,
refresh = FALSE,
flatten = FALSE,
flatten_mode = "json"
)Arguments
- safe
Logical; if
TRUE(default), apply rate-limiting and cache GET responses totools::R_user_dir("bunddev", "cache").- refresh
Logical; if
TRUE, ignore cached responses and re-fetch from the API (defaultFALSE).- flatten
Logical; if
TRUE, simplify nested list columns according toflatten_mode. DefaultFALSEkeeps list columns as-is.- flatten_mode
How to handle list columns when
flatten = TRUE:"drop"Remove list columns entirely. Use when nested data is not needed.
"json"Convert each list element to a JSON string. Preserves all data in a text-queryable format. This is the default.
"unnest"Expand list columns into multiple rows via
tidyr::unnest_longer(). Warning: this can significantly increase the number of rows.
Value
A one-row tibble with GeoJSON container metadata:
- type
GeoJSON object type (character).
- name
Dataset name (character).
- title
Dataset title (character).
- version
Version identifier (character).
- copyright_short
Short copyright label (character).
- copyright_url
Copyright URL (character).
- crs
Coordinate reference system metadata (list-column).
- features
GeoJSON feature collection entries (list-column).
Details
Returns GeoJSON data for Germany and the federal states. API documentation: https://bundesapi.github.io/dashboard-deutschland-api/.
See also
Other Dashboard Deutschland:
dashboard_deutschland_get(),
dashboard_deutschland_indicators()