Bus_RouteFare: Retrieve the route fare of each bus route

Bus_RouteFareR Documentation

Retrieve the route fare of each bus route

Description

The function is used to download the bus route fare.

Usage

Bus_RouteFare(access_token, county, out=F)

Arguments

access_token

Your access token given by TDX platform. This can be derived from the function get_token().

county

Please fill in the English county name. Checking out the appropriate county name in dataframe TDX_County. If Intercity is used, the function retrieves the intercity bus data.

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.

Value

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

Author(s)

Maintainer: Chia Jung, Yeh chia-jung.yeh@sydney.edu.au

Examples

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")

ChiaJung-Yeh/NYCU_TDX documentation built on Nov. 25, 2024, 6:57 a.m.