patrickbr/gtfstidy

[Suggestion] Remove equivalent trips

brodyFlannigan opened this issue · 0 comments

GTFSTidy already removes trips that have the same arrival/departure times and the same service ID.

Would it be possible to do the same for trips that are identical save for their days of operation?

For instance:
Trips 1 and 2 are identical in terms of trip properties (stop_times, trip fields, etc.) except that trip 1's service is only in effect on Monday while Trip 2 is only on Tuesday.
What we should do is delete one of the two trips and assign the remaining one a new service_id that covers all the dates covered by the 2 original service IDs.

Would that be feasible? OneBusAway's GTFS transformer does this with the calendar simplification option. and it can help reduce the size of a GTFS considerably.