Description Usage Arguments Value Examples
View source: R/getBusTimings.R
Returns real-time estimated bus arrival timings for the specified bus stops in Singapore. Note that this function may not return anything between 1.00am and 5.00am SG time (GMT+8)
1 | getBusTimings(codes = c("07351", "09047"), api_key)
|
codes |
A character vector of bus stop codes |
api_key |
API key for LTA's Datamall |
A dataframe containing all the outputs from the Bus Timings API, including the service number, estimated arrival time, load, and type for the next three buses.
1 | getBusTimings(c('11111', '22222', '33333'), mykey)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.