Returns a distance, fare information, and estimated travel time between any two stations, including those on different lines. Omit both parameters to retrieve data for all stations.
1 2 3 4 5
Station code for the origin station. Use the
Station code for the destination station. Use the
Subscription key which provides access to this API. Defaults
A tibble 1 row per with variables:
Origin station code. Use this value in other rail-related APIs to retrieve data about a station.
Destination station code. Use this value in other rail-related APIs to retrieve data about a station.
Average of distance traveled between two stations and straight-line distance (as used for WMATA fare calculations). For more details, please refer to WMATA's Tariff on Fares.
Estimated travel time (schedule time) in minutes between
the source and destination station. This is not correlated to minutes
Min) in Real-Time Rail Predictions.
Fare during peak times (weekdays from opening to 9:30 AM and 3-7 PM (EST), and weekends from midnight to closing).
Fare during off-peak times (times other than the ones described below).
Reduced fare for senior citizens or people with disabilities.
A data frame containing station to station information
1 2 3 4
## Not run: rail_destination("A01", "A08") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.