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())
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.
Center point Latitude, required if Longitude
and Radius
are
specified.
Center point Longitude, required if Latitude
and Radius
are
specified.
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()
.
Data frame containing stop information
Other Bus Route and Stop Methods:
bus_departs()
,
bus_path()
,
bus_position()
,
bus_routes()
,
bus_schedule()
if (FALSE) {
bus_stops(38.8895, -77.0353, 500)
}