# grab all of the feeds released by portland's
# bikeshare program and return them as a
# named list of dataframes
get_gbfs(city = "biketown_pdx")
# if, rather than returning the data, we wanted to save it:
get_gbfs(city = "biketown_pdx", directory = tempdir())
# note that, usually, we'd supply a character string
# (like "pdx", maybe,) to the directory argument
# instead of `tempdir()`.
# if we're having trouble specifying the correct feed,
# we can also supply the actual URL to the feed
get_gbfs(city = "https://gbfs.lyft.com/gbfs/1.1/pdx/gbfs.json")
# the examples above grab every feed that portland releases.
# if, instead, we just wanted the dynamic feeds
get_gbfs(city = "biketown_pdx", feeds = "dynamic")
Run the code above in your browser using DataLab