get_which_gbfs_feeds: Get dataframe of bikeshare feeds released by a city

View source: R/get_gbfs.R

get_which_gbfs_feedsR Documentation

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)

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.

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.

Source

North American Bikeshare Association, General Bikeshare Feed Specification https://github.com/NABSA/gbfs/blob/master/gbfs.md

Examples

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


gbfs documentation built on Aug. 15, 2022, 5:09 p.m.