Returns a list of nearby station entrances based on latitude, longitude, and radius (meters). Omit search parameters to return all station entrances.
rail_entrance(Lat = NULL, Lon = NULL, Radius = NULL, api_key = wmata_key())
A tibble 1 row per entrance with 7 variables:
Name of the entrance (usually the station name and nearest intersection).
The station code associated with this entrance. Use this value in other rail-related APIs to retrieve data about a station.
For stations containing multiple platforms (e.g.:
Gallery Place, Fort Totten, L'Enfant Plaza, and Metro Center), the other
station code (previously StationCode2
).
Additional information for the entrance, if available.
Currently available data usually shows the same value as the Name
element.
Latitude.
Longitude.
Distance (meters) of the entrance from the provided search
coordinates. Calculated using geodist::geodist()
and the "cheap ruler"
method.
(Optional) Center point Latitude, required if Longitude
and
Radius
are specified.
(Optional) Center point Longitude, required if Latitude
and
Radius
are specified.
(Optional) Radius (meters) to include in the search area,
required if Latitude
and Longitude
are specified.
Subscription key which provides access to this API. Defaults
Sys.getenv("WMATA_KEY")
via wmata_key()
.
A data frame of station entrances.
Other Rail Station Information:
rail_destination()
,
rail_lines()
,
rail_path()
,
rail_stations()
,
rail_times()
,
station_info()
if (FALSE) {
rail_entrance(38.8895, -77.0353)
}