gtfs_interpolate_times: Interpolate stop times

View source: R/gtfs_interpolate_times.R

gtfs_interpolate_timesR Documentation

Interpolate stop times

Description

Sometimes bus timetables do not give unique stop times to every stop. Instead several stops in an row are given the same stop time. This function interpolates the stop times so that each bust stop is given a unique arrival and departure time.

Usage

gtfs_interpolate_times(gtfs, ncores = 1)

Arguments

gtfs

named list of data.frames

ncores

number of cores to use

Details

Note this is not possible if the final arrival time is a duplicated time, in which case the times are unmodified. Interpolation is based on arrival time only. If after interpolation departure time is less than arrival time then departure time is set to arrival time.


ITSLeeds/UK2GTFS documentation built on Feb. 14, 2025, 11:20 a.m.