Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancements #360

Merged
merged 7 commits into from
Aug 11, 2023
Merged

Enhancements #360

merged 7 commits into from
Aug 11, 2023

Conversation

carlhiggs
Copy link
Member

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.

…t requirement for departure time (or its accurate interpolation) in stop_times.txt as per #356 and #359.  Also added in comment to configuration files to explicitly advise users to use Projected coordinated reference systems, as per discussion in #356
…ncluding all stops (not just those present in stop_times that have a departure time), but warning if some lack departure time and therefore yield in accurate frequency estimates. This can result in a larger denominator (including all stops, not just those with recorded departures) and consequently shift percentage estimates for pct_headway
…s (sys.exits if this is the case, displaying a warning recommending interpolation), and a function to perform a linear interpolation of stop times that can be optionally configured in the region configuration file - as per #356 and #359
…onal 'interpolate_stop_times' function, as per #356 and #359
@carlhiggs carlhiggs merged commit 93220c8 into main Aug 11, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant