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)
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.
# NOT RUN { getBusTimings(c('11111', '22222', '33333'), mykey) # }