Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
addresses #359
Importantly, this adds a new 'interpolate_stop_times' option for GTFS feeds to deal with the case of stop_times.txt missing departure times values. If that's the case, analysis of regular service frequencies cannot proceed accurately for that GTFS feed. As per the GTFS reference specification, missing departure or arrival times may be interpolated using the stop sequence start and end times within each trip id.
The new
interpolate_stop_times
option/function if set fills null arrival and departure values using a linear interpolation according to the provided stop sequence start and end times within each trip_id. This is an approximation based on the available information, and results may still differ from the actual service frequencies at these stops. However, in the absence of further information, a user may judge it as an adequate approximation (using the values implicit in the data itself), in which case it would allow analysis to proceed.