bus_routes: Bus Routes

View source: R/bus-routes.R

bus_routesR Documentation

Bus Routes

Description

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())

Arguments

api_key

Subscription key which provides access to this API. Defaults Sys.getenv("WMATA_KEY") via wmata_key().

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.

Value

Data frame containing route variant information

See Also

https://developer.wmata.com/docs/services/54763629281d83086473f231/operations/5476362a281d830c946a3d6a

Other Bus Route and Stop Methods: bus_departs(), bus_path(), bus_position(), bus_schedule(), bus_stops()

Examples

## Not run: 
bus_routes()

## End(Not run)

metro documentation built on Nov. 2, 2023, 6:06 p.m.