standard_routes: Standard Routes

View source: R/standard-routes.R

standard_routesR Documentation

Standard Routes

Description

Returns an ordered list of mostly revenue (and some lead) track circuits, arranged by line and track number. This data does not change frequently and should be cached for a reasonable amount of time.

Usage

standard_routes()

Format

A nested tibble with 1 row per track and 3 variables:

LineCode

Abbreviation for the revenue line. Note that this also includes YLRP (Yellow Line Rush Plus).

TrackNum

Track number (1 or 2).

TrackCircuits

Array containing ordered track circuit information:

  • CircuitId: An internal system-wide uniquely identifiable circuit number.

  • SeqNum: Order in which the circuit appears for the given line and track. Sequences go from West to East and South to North.

  • StationCode: If the circuit is at a station, this value will represent the station code. Otherwise, it will be be NA. Use this value in other rail-related APIs to retrieve data about a station.

Details

Please refer to this page for additional details.

Value

A nested data frame of track circuits.

See Also

https://developer.wmata.com/docs/services/5763fa6ff91823096cac1057/operations/57641afc031f59363c586dca

Other Train Positions: rail_positions(), track_circuits()

Examples

## Not run: 
standard_routes()

## End(Not run)

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