Description Usage Arguments Value Examples
This function allows to lookup the information of stops, including stop ID, direction, longitude and latitude based on the arguments of bus number, stop name and stop direction.
1 2 | lookupstop(bus, stopname = NULL, dir = NULL,
key = Sys.getenv("BUS_CLIENT_KEY"))
|
bus |
Bus number. |
stopname |
Name of bus stop.It is optional and case insensitive. |
dir |
Direction of routes.It is optional and case insensitive. |
key |
Key for accessing the API. |
Dataframe with potential matching stop with bus number, stop ID, direction, longitude and latitude columns.
1 2 3 | lookupstop(bus = 1, stopname = "Michigan")
lookupstop(bus = 1, dir = "Southbound")
lookupstop(bus = 1, stopname = "indiana", dir = "northbound")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.