The Metro Transparent Data Sets API provides developer access to JSON data for the order and location of rail stations by line, train arrival predictions for each station, service alerts, and elevator/escalator status. This package has been developed to make calls to the API using dedicated R functions with copied documentation and identical parameters/arguments. All functions return one or more data frames for easy analysis.
There are six endpoint categories returning JSON data.
Bus Route and Stop Methods, starting with
Schedule at stop:
Incidents, ending with
Validate API Key:
Rail Station Information, starting with
Parking Information: Not yet covered.
Path Between Stations:
Station to Station Information:
Real-Time Predictions, starting with
Live Train Positions:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.