replace_cropped_shapes: Replace the shapes of cropped trips by their cuts

View source: R/crop_gtfs.R

replace_cropped_shapesR Documentation

Replace the shapes of cropped trips by their cuts

Description

Replace the shapes of cropped trips by their cuts

Usage

replace_cropped_shapes(gtfs, shape_cuts)

Arguments

gtfs

A GTFS object, as created by read_gtfs().

shape_cuts

The output of locate_cropped_trip_cuts().

Value

The GTFS object with the cut shapes added to shapes, the cropped trips linked to them and the shape_dist_traveled of their stop_times set to NA. Shapes no longer used by any trip are removed.


gtfstools documentation built on Oct. 28, 2026, 5:13 p.m.