Returns information about all rail lines.
rail_lines(api_key = wmata_key())
A tibble 1 row per line with 6 variables:
Two-letter abbreviation for the line (e.g.: RD, BL, YL, OR, GR, or SV).
Full name of line color.
Start station code. For example, will be F11 (Branch Avenue) for the Green Line, A15 (Shady Grove) for the Red Line, etc. Use this value in other rail-related APIs to retrieve data about a station.
End station code. For example, will be E10 (Greenbelt) for the Green Line, B11 (Glenmont) for the Red Line, etc. Use this value in other rail-related APIs to retrieve data about a station.
Intermediate terminal station code(s). During
normal service, some trains on some lines might end their trip prior to the
StartStationCode
or EndStationCode.
A good example is on the Red Line
where some trains stop at A11 (Grosvenor) or B08 (Silver Spring). NA
if
not defined.
Subscription key which provides access to this API. Defaults
Sys.getenv("WMATA_KEY")
via wmata_key()
.
A data frame of rail lines.
Other Rail Station Information:
rail_destination()
,
rail_entrance()
,
rail_path()
,
rail_stations()
,
rail_times()
,
station_info()
if (FALSE) {
rail_lines()
}