gtfs_as_sf: Convert stops and shapes to Simple Features

Description Usage Arguments Value See Also

View source: R/spatial.R

Description

Stops are converted to POINT sf data frames. Shapes are created as LINESTRING data frame. Note that this function replaces stops and shapes tables in gtfs_obj.

Usage

1
gtfs_as_sf(gtfs_obj, skip_shapes = FALSE, crs = NULL, quiet = TRUE)

Arguments

gtfs_obj

a standard tidytransit gtfs object

skip_shapes

if TRUE, shapes are not converted. Default FALSE.

crs

optional coordinate reference system (used by sf::st_transform) to transform lon/lat coordinates of stops and shapes

quiet

boolean whether to print status messages

Value

tidygtfs object with stops and shapes as sf dataframes

See Also

sf_as_tbl


tidytransit documentation built on Nov. 23, 2021, 5:08 p.m.