Bus_Route | R Documentation |
The function is used to download the bus route information, including the route name, subroute name, bus route type, direction, departure and destination stop name. Note that it supports to download data of city buses and intercity buses.
Bus_Route(access_token, county, dates=F, out=F)
access_token |
Your access token given by TDX platform. This can be derived from the function |
county |
Please fill in the English county name. Checking out the appropriate county name in dataframe |
dates |
If historical data would be retrieved, this argument should be set; otherwise the default value is FALSE. The date format should be |
out |
If the result should be exported to the local, please fill in the directory. The default value is FALSE, which does not export the data. |
Some columns definition are listed below.
RouteUID | It contains every subroutes and directions in a same RouteUID. | |
SubRouteUID | If the direction or subroute is not the same, a different SubRouteUID must be recorded. | |
Codes of Direction are listed below.
0 | outbound |
1 | inbound |
2 | loop |
255 | unknown |
Codes of BusRouteType are listed below.
11 | City Bus |
12 | Intercity Bus (Normal) |
13 | Intercity Bus (Freeway) |
14 | Feeder bus |
Maintainer: Chia Jung, Yeh chia-jung.yeh@sydney.edu.au
Bus_Route(access_token, "Taipei")
Bus_Route(access_token, "Hsinchu", out="./Hsinchu_Bus_Route.csv")
# historical data
Bus_Route(access_token, "Hsinchu", "2022-01-01")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.