myfavrt: Allow users get real-time information of your favorite route.

Description Usage Arguments Value Examples

Description

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.

Usage

1
2
myfavrt(bus, start_id, end_id, key = Sys.getenv("BUS_CLIENT_KEY"),
  interval = 0, times = 1)

Arguments

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.

Value

Dataframe with a set of real-time information in a given period.

Examples

1
myfavrt(bus = 126, start_id = 36, end_id = 60, interval= 0, times = 1)

ytingc/rCTA documentation built on May 15, 2019, 1:12 p.m.