Bus_RouteFare {TDX} | R Documentation |
The function is used to download the bus route fare.
Bus_RouteFare(access_token, county, 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 |
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. | |
BZOStopID | The origin of StopID of buffer zone. | |
BZDStopID | The destination of StopID of buffer zone. | |
Codes of FarePricingType are listed below.
0 | price by times |
1 | price by OD |
2 | price by buffer zone |
Codes of TicketType are listed below.
1 | One-way ticket |
2 | Round-trip ticket |
3 | Smart card |
4 | Multi-ride ticket |
5 | 30 days periodic ticket |
6 | 60 days periodic ticket |
Codes of FareClass are listed below.
1 | Adult |
2 | Student |
3 | Child |
4 | Senior |
5 | Disabled |
6 | Disabled Child |
7 | Disabled accompany |
8 | Group |
Maintainer: Chia Jung, Yeh chia-jung.yeh@sydney.edu.au
bus_fare=Bus_RouteFare(access_token, "Taipei")
# Buffer zone of the bus route
bus_fare$BufferZone
# Fare in the zones
bus_fare$ZoneFare
Bus_RouteFare(access_token, "Hsinchu", out="./Hsinchu_Bus_Route.csv")