powered by
Reported rail incidents (significant disruptions and delays to normal service). The data is identical to WMATA's Metrorail Service Status feed.
rail_incidents(api_key = wmata_key())
Data frame of all rail incidents.
A data frame with 1 row incident and 5 variables:
Unique identifier for an incident.
Free-text description of the incident.
Free-text description of the incident type. Usually Delay or Alert but is subject to change at any time.
Character vector of line codes (e.g.: RD; or BL; OR; or BL; OR; RD;).
Date and time (UTC) of last update.
Subscription key which provides access to this API. Defaults Sys.getenv("WMATA_KEY") via wmata_key().
Sys.getenv("WMATA_KEY")
wmata_key()
https://developer.wmata.com/docs/services/54763641281d83086473f232/operations/54763641281d830c946a3d77
Other Incident APIs: bus_incidents(), elevator_incidents()
bus_incidents()
elevator_incidents()
if (FALSE) { rail_incidents() }
Run the code above in your browser using DataLab