This function allows users to look up the direction of a specified bus number.

get_direction(bus, key = Sys.getenv("BUS_CLIENT_KEY"))

Arguments

bus

Bus number.

key

Key for accessing the API.

Value

Dataframe with bus number and its corresponding direction.

Examples

get_direction(bus = 156)
#> dir #> 1 Northbound #> 2 Southbound