View source: R/gtfs_interpolate_times.R
gtfs_interpolate_times | R Documentation |
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.
gtfs_interpolate_times(gtfs, ncores = 1)
gtfs |
named list of data.frames |
ncores |
number of cores to use |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.