Rail_StationOfLine: Retrieve the station and sequence of each railway line

Rail_StationOfLineR Documentation

Retrieve the station and sequence of each railway line

Description

The function is used to download the stations of each railway route with sequence. Please note that this function can retrieve the sequence of each railway route, but has no any geometry information. If you want to obtain the geometry information, please use function Rail_Station().

Usage

Rail_StationOfLine(access_token, operator, dates=F, out=F)

Arguments

access_token

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

operator

Please fill in the operator code of given railway system. Checking out the appropriate operator code in dataframe TDX_Railway. And note that "THSR" is not allowed.

dates

If historical data would be retrieved, this argument should be set; otherwise the default value is FALSE. The date format should be YYYY-MM-DD.

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. The directory must contain ".csv" or ".txt" when exporting text file.

Author(s)

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

Examples

Rail_StationOfLine(access_token, "TRA")
Rail_StationOfLine(access_token, "TRTC", out="./taipei_mrt_stationofline.csv")

# historical data
Rail_StationOfLine(access_token, "TRTC", "2022-01-01")

ChiaJung-Yeh/NYCU_TDX documentation built on Aug. 28, 2024, 10:43 p.m.