Skip to contents

List NINA travel warnings

Usage

nina_warnings(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 warning entry. Columns include scalar fields from each entry (names converted to snake_case) plus the following added metadata:

content_id

Content identifier from the NINA feed (character).

response_country

Feed-level country code (character).

response_last_modified

Feed-level modification timestamp in milliseconds (numeric).

last_modified_time

Entry-level last-modified timestamp (POSIXct, Europe/Berlin).

effective_time

Entry-level effective timestamp (POSIXct, Europe/Berlin).

Details

The NINA API provides warnings and app data from the Bundesamt fuer Bevoelkerungsschutz. This endpoint returns a list of travel warnings with metadata. API documentation: https://nina.api.bund.dev.

Examples

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