get_direction.Rd
This function allows users to look up the direction of a specified bus number.
get_direction(bus, key = Sys.getenv("BUS_CLIENT_KEY"))
bus | Bus number. |
---|---|
key | Key for accessing the API. |
Dataframe with bus number and its corresponding direction.
get_direction(bus = 156)#> dir #> 1 Northbound #> 2 Southbound