| mobdb_feed_url | R Documentation |
Convenience function to quickly get the direct download or source URL for a feed. This is useful for passing to tidytransit::read_gtfs() or similar functions.
mobdb_feed_url(feed_id)
feed_id |
A string. The unique identifier for the feed. |
A string. The direct download URL, or NULL if not available.
# Get download URL
url <- mobdb_feed_url("mdb-53")
# Use with tidytransit
library(tidytransit)
gtfs <- read_gtfs(url)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.