gu_routes_shapes: Routes shapes retriever

Description Usage Arguments Value Examples

View source: R/gu_routes_shapes.R

Description

Returns a sf object with the GTFS' routes shapes.

Usage

1
gu_routes_shapes(gtfs, crs, sep = ",")

Arguments

gtfs

The path to the GTFS file from which you want to retrieve the routes shapes.

crs

The desired CRS of the sf object (something suitable as input to st_crs).

sep

The delimiter used to separate each entry in the txt files within the GTFS. Defaults to ",".

Value

A sf with shape_id and geom columns.

Examples

1
gu_routes_shapes(gtfs = "./data/rio_gtfs.zip", crs = 4674, sep = ";")

dhersz/gtfsutils documentation built on Aug. 15, 2020, 12:38 a.m.