| mobdb_datasets | R Documentation |
Retrieve information about available datasets (historical versions) for a specific feed. Each dataset represents a snapshot of the feed at a particular point in time.
mobdb_datasets(feed_id, latest = TRUE, use_cache = TRUE)
feed_id |
A string. The unique identifier for the feed. |
latest |
A logical. If |
use_cache |
A logical. If |
A tibble containing dataset information including:
id - Dataset identifier
feed_id - Associated feed ID
downloaded_at - Timestamp when dataset was captured
hash - Hash of the dataset file
download_url - URL to download this specific dataset version
Additional metadata columns
download_feed() to download specific historical versions,
get_validation_report() to extract validation data from datasets,
mobdb_get_dataset() to get details for a specific dataset
# Get latest dataset for a feed (GTFS schedule feeds only)
latest <- mobdb_datasets("mdb-53")
# Get all historical datasets
all_versions <- mobdb_datasets("mdb-53", latest = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.