Bike_Station: Retrieve the station of bike sharing system

Bike_StationR Documentation

Retrieve the station of bike sharing system

Description

The function is used to download the stations of bike sharing system for given county.

Usage

Bike_Station(access_token, county, 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().

county

Please fill in the English county name. Checking out the appropriate county name in dataframe TDX_County. Note that some of cities have no bike sharing system, please check it out first.

dtype

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

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. 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

Bike_Station(access_token, "Taipei")
Bike_Station(access_token, "Hsinchu", dtype="sf", out="./hsinchu_youbike.shp")

# historical data
Bike_Station(access_token, "Hsinchu", "2022-01-01")

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