Learn R Programming

gtfstools (version 2.0.1)

interpolate_cropped_trips: Interpolate the times of cropped trips

Description

Interpolate the times of cropped trips

Usage

interpolate_cropped_trips(gtfs, trip_id, first_sequence, last_sequence)

Value

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

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.