Last chance! 50% off unlimited learning
Sale ends in
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.
gtfs_as_sf(gtfs_obj, skip_shapes = FALSE, crs = NULL, quiet = TRUE)
tidygtfs object with stops and shapes as sf dataframes
a standard tidytransit gtfs object
if TRUE, shapes are not converted. Default FALSE.
optional coordinate reference system (used by sf::st_transform) to transform lon/lat coordinates of stops and shapes
boolean whether to print status messages
sf_as_tbl