interpolate_cropped_trips: Interpolate the times of cropped trips

View source: R/crop_gtfs.R

interpolate_cropped_tripsR Documentation

Interpolate the times of cropped trips

Description

Interpolate the times of cropped trips

Usage

interpolate_cropped_trips(gtfs, trip_id, first_sequence, last_sequence)

Arguments

gtfs

A GTFS object, as created by read_gtfs().

trip_id

The trip_ids of the cropped trips with blank times at their new first or last stop.

first_sequence, last_sequence

The stop_sequence of the new first and last stops of each trip.

Value

The GTFS object with the times of these trips interpolated, along their shapes when possible, and along straight lines otherwise.


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