rail_lines {metro}R Documentation

Rail Lines

Description

Returns information about all rail lines.

Usage

rail_lines(api_key = wmata_key())

Arguments

api_key

Subscription key which provides access to this API. Defaults Sys.getenv("WMATA_KEY") via wmata_key().

Format

A tibble 1 row per line with 6 variables:

LineCode

Two-letter abbreviation for the line (e.g.: RD, BL, YL, OR, GR, or SV).

DisplayName

Full name of line color.

StartStationCode

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.

EndStationCode

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.

InternalDestination

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.

Value

A data frame of rail lines.

See Also

https://developer.wmata.com/docs/services/5476364f031f590f38092507/operations/5476364f031f5909e4fe330c

Other Rail Station Information: rail_destination(), rail_entrance(), rail_path(), rail_stations(), rail_times(), station_info()

Examples

## Not run: 
rail_lines()

## End(Not run)

[Package metro version 0.9.3 Index]