bus_stops | R Documentation |
Returns a list of nearby bus stops based on latitude, longitude, and radius. Omit all parameters to retrieve a list of all stops.
bus_stops(Lat = NULL, Lon = NULL, Radius = NULL, api_key = wmata_key())
Lat |
Center point Latitude, required if |
Lon |
Center point Longitude, required if |
Radius |
Radius (meters) to include in the search area, required if
|
api_key |
Subscription key which provides access to this API. Defaults
|
A tibble with 1 row per stop and 6 variables:
String array of route variants which provide service at this stop. Note that these are not date-specific; any route variant which stops at this stop on any day will be listed.
Stop name. May be slightly different from what is spoken or displayed in the bus.
Latitude.
Longitude.
Distance (meters) of the stop from the provided search
coordinates. Calculated using geodist::geodist()
and the "cheap ruler"
method.
Character string of route variants which provide service at this stop. Note that these are not date-specific; any route variant which stops at this stop on any day will be listed.
Data frame containing stop information
Other Bus Route and Stop Methods:
bus_departs()
,
bus_path()
,
bus_position()
,
bus_routes()
,
bus_schedule()
## Not run:
bus_stops(38.8895, -77.0353, 500)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.