Learn R Programming

gbfs (version 1.3.10)

get_which_gbfs_feeds: Get dataframe of bikeshare feeds released by a city

Description

Of the different types of feeds supplied by the gbfs, some are required, some are conditionally required, and some are optional. This function grabs a list of each of the feeds supplied by a given city, as well as the URLs to access them.

Usage

get_which_gbfs_feeds(city)

Value

A data.frame containing the feeds supplied by a city. . The `feed` column supplies the name of the relevant .json feeds, while the entries in the `URL` column supply the feeds themselves.

Arguments

city

A character string that can be matched to a gbfs feed. The recommended argument is a system ID supplied in the output of [get_gbfs_cities()], but will also attempt to match to the URL of an active .json feed or city name.

Examples

Run this code
# grab all of the feeds released by portland
get_which_gbfs_feeds(city = "biketown_pdx")

Run the code above in your browser using DataLab