Returns a list of all bus route variants (patterns). For example, the 10A and 10Av1 are the same route, but may stop at slightly different locations.
bus_routes(api_key = wmata_key())
A tibble with 3 variables and one row per route variant:
Unique identifier for a given route variant. Can be used in various other bus-related methods.
Descriptive name of the route variant.
Denotes the route variant's grouping - lines are a combination of routes which lie in the same corridor and which have significant portions of their paths along the same roadways.
Subscription key which provides access to this API. Defaults
Sys.getenv("WMATA_KEY")
via wmata_key()
.
Data frame containing route variant information
Other Bus Route and Stop Methods:
bus_departs()
,
bus_path()
,
bus_position()
,
bus_schedule()
,
bus_stops()
if (FALSE) {
bus_routes()
}