develop gtfs
cleaner to handle repeated pair (trip_id, departure_time)
warnings
#73
Labels
GTFS
technical debt
A better way is available. Fix later approach has been adopted.
wontfix
This will not be worked on
Milestone
Description of the Feature to be Added
Calling
is_valid()
regularly leads torepeated pair (trip_id, departure_time)
instop_times.txt
but these are not cleaned byclean_feed()
. Further investigation shows that:stop_times.txt
, within a given trip, have duplicate trip_id, arrival_time, departure_time, and stop_id. It's clear this circumstance is an erroneous duplication.stop_ids
- it's possible for these to be timetabled with the same time because of their proximity. Here is an example where a bus turns around and serves two stops on either side of the road (near Dingestow):(OPTIONAL) Suggested Implementations
In
stop_times.txt
, when records have duplicate trip_id, arrival_time, departure_time, and stop_id these can be safely dropped (represent the same trip, stop and time). Develop a clean which drops these from the stop_times feed, to prevent these warnings from remaining.Additional context
The text was updated successfully, but these errors were encountered: