Rail_Shape: Retrieve the shape of railway

Rail_ShapeR Documentation

Retrieve the shape of railway

Description

The function is used to download the shape of railway. Please fill in the operator to retrieve its geometry.

Usage

Rail_Shape(access_token, operator, dates=F, dtype="text", 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.

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.

dtype

The class of data, including text (data frame) and sf (simple feature). The default value is text.

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. Note that the directory must contain ".shp" when exporting simple feature. And 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_Shape(access_token, "TRA")
Rail_Shape(access_token, "TRA", dtype="sf", out="./TRA.shp")

# historical data
Rail_Shape(access_token, "TRTC", "2022-01-01", dtype="sf")

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