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.
Usage
bus_routes(api_key = wmata_key())
Value
Data frame containing route variant information
Format
A tibble with 3 variables and one row per route variant:
RouteID
Unique identifier for a given route variant. Can be used in
various other bus-related methods.
Name
Descriptive name of the route variant.
LineDescription
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.
Arguments
api_key
Subscription key which provides access to this API. Defaults
Sys.getenv("WMATA_KEY") via wmata_key().