MobilityData / gtfs-realtime-validator

Java-based tool that validates General Transit Feed Specification (GTFS)-realtime feeds
Other
41 stars 10 forks source link

Check that start_date is consistent with GTFS #42

Open isabelle-dr opened 2 years ago

isabelle-dr commented 2 years ago

Issue by barbeau Wednesday Apr 27, 2017 Originally opened as https://github.com/CUTR-at-USF/gtfs-realtime-validator/issues/170


Summary:

For normal scheduled trips (i.e., not defined in frequencies.txt), make sure that the TripDescriptor start_date matches the GTFS trip start_date - in other words, it must be a valid start date given calendar.txt and calendar_dates.txt. If not, it's an error.

Moved here from #37 (comment).

isabelle-dr commented 2 years ago

Comment by barbeau Friday Jul 07, 2017


Note that start_date is actually a little tricky to calculate, because it requires loading/extrapolating calendar.txt as well as calendar_dates (including agencies that just add all service to calendar_dates).

Similar issue exists for frequency-based exact_times=1 trips, ticketed at #41.