Description Usage Arguments Value Examples
Users will obtain real-time information of their favorite routes, including the estimated arrival time, waiting time, travel time, current status, delay and alert message. It also allows users to collect and save the real-time information for a given period in a data frame through calling the function periodically.
1 2 | myfavrt(bus, start_id, end_id, key = Sys.getenv("BUS_CLIENT_KEY"),
interval = 0, times = 1)
|
bus |
Bus number. |
start_id |
ID of the departure stop. |
end_id |
ID of the destination stop. |
key |
Key for accessing the API. |
interval |
Time interval between calling the function. |
times |
The number of times calling the function. |
Dataframe with a set of real-time information in a given period.
1 | myfavrt(bus = 126, start_id = 36, end_id = 60, interval= 0, times = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.