Real-time rail prediction methods.

next_trains(station_codes)

Arguments

station_codes

Character vector of station codes. For all predictions, use "All".

Functions

  • next_trains: Returns next train arrival information for one or more stations. Will return an empty set of results when no predictions are available. Use All for the StationCodes parameter to return predictions for all stations.

References

https://developer.wmata.com/docs/