get_bus_route_stops: get_bus_route_stops

Description Usage Arguments Value Examples

View source: R/get_bus_route_stops.R

Description

get_bus_route_stops() takes a CTA route ID and direction and returns the locations of stops along that route.

Usage

1
2
get_bus_route_stops(route = NULL, direction = NULL,
  key = Sys.getenv("ctar_api_key"))

Arguments

route

The bus route ID, such as 12.

direction

The direction of the bus route ID, such as "e", "east" or "Eastbound".

key

The Chicago Transit Authority developer API key either entered as a string or saved to the environment object 'ctar_api_key'

Value

Returns a dataframe with the location of stops for a specific CTA bus route with direction.

Examples

1
2
3
4
## Not run: 
get_bus_route_stops(route=12, direction="east", key = Sys.getenv("ctar_api_key"))

## End(Not run)

willdebras/ctar documentation built on Nov. 5, 2019, 12:20 p.m.