| rail_path | R Documentation |
Returns a set of ordered stations and distances between two stations on the same line.
rail_path(FromStationCode, ToStationCode, api_key = wmata_key())
FromStationCode |
Station code for the origin station. Use the Station List method to return a list of all station codes. |
ToStationCode |
Station code for the destination station. Use the Station List method to return a list of all station codes. |
api_key |
Subscription key which provides access to this API. Defaults
|
A tibble 1 row per arrival with 6 variables:
Two-letter abbreviation for the line (e.g.: RD, BL, YL, OR, GR, or SV) this station's platform is on.
Station code for this station. Use this value in other rail-related APIs to retrieve data about a station.
Full name for this station, as shown on the WMATA website.
Ordered sequence number.
Distance in meters to the previous station in the
list, ordered by SeqNum. Converted from feet, rounded to the nearest
meter.
Note that this method is not suitable on its own as a pathfinding solution between stations.
A data frame of stations on rail path.
Other Rail Station Information:
rail_destination(),
rail_entrance(),
rail_lines(),
rail_stations(),
rail_times(),
station_info()
## Not run:
rail_path("A01", "A08")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.