# we can grab the system regions feed for portland,
# oregon in one of several ways! first, supply the `city`
# argument as a URL, and save to file by leaving output
# set to it's default. usually, we would supply a character
# string (like "pdx", maybe,) for the `directory` argument
# instead of `tempdir`.
get_system_regions(city =
"https://gbfs.lyft.com/gbfs/1.1/pdx/en/system_regions.json",
directory = tempdir())
# or, instead, just supply the name of
# the city as a string and return the output
# as a dataframe
get_system_regions(city = "biketown_pdx",
output = "return")
Run the code above in your browser using DataLab