track_circuits: Track Circuits

View source: R/track-circuits.R

track_circuitsR Documentation

Track Circuits

Description

Returns a list of all track circuits including those on pocket tracks and crossovers. Each track circuit may include references to its right and left neighbors.

Usage

track_circuits()

Format

A nested tibble with 1 row per train and 9 variables:

Track

Track number. 1 and 2 denote "main" lines, while 0 and 3 are connectors (between different types of tracks) and pocket tracks, respectively.

CircuitId

An internal system-wide uniquely identifiable circuit number.

Neighbors

Data frame containing track circuit neighbor information. Note that some track circuits have no neighbors in one direction. All track circuits have at least one neighbor.

  • NeighborType: Left or Right neighbor group. Generally speaking, left neighbors are to the west and south, while right neighbors are to the east/north.

  • CircuitIds: Data frame containing neighboring circuit IDs as list column.

Details

Please refer to this page for additional details.

Value

A data frame of nested track circuit information.

See Also

https://developer.wmata.com/docs/services/5763fa6ff91823096cac1057/operations/57644238031f59363c586dcb

Other Train Positions: rail_positions(), standard_routes()

Examples

## Not run: 
track_circuits()

## End(Not run)

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