View source: R/rail-entrance.R
rail_entrance | R Documentation |
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())
Lat |
(Optional) Center point Latitude, required if |
Lon |
(Optional) Center point Longitude, required if |
Radius |
(Optional) Radius (meters) to include in the search area,
required if |
api_key |
Subscription key which provides access to this API. Defaults
|
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.
A data frame of station entrances.
Other Rail Station Information:
rail_destination()
,
rail_lines()
,
rail_path()
,
rail_stations()
,
rail_times()
,
station_info()
## Not run:
rail_entrance(38.8895, -77.0353)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.