Bike_Shape: Retrieve the geometry of cycling path

Bike_ShapeR Documentation

Retrieve the geometry of cycling path

Description

The function is used to download the cycling path of given county.

Usage

Bike_Shape(access_token, county, 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 cycling path, please check it out first.

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

Bike_Shape(access_token, "Taipei")
Bike_Shape(access_token, "Tainan", dtype="sf", out="./tainan_cycling_path.shp")

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