CUTR-at-USF / gtfs-realtime-validator

Java-based tool that validates General Transit Feed Specification (GTFS)-realtime feeds. See https://github.com/MobilityData/gtfs-realtime-validator for the latest!
Other
93 stars 40 forks source link

Check that start_date is consistent with GTFS #170

Open barbeau opened 7 years ago

barbeau commented 7 years ago

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 https://github.com/CUTR-at-USF/gtfs-realtime-validator/issues/37#issuecomment-297843291.

barbeau commented 7 years ago

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 https://github.com/CUTR-at-USF/gtfs-realtime-validator/issues/165.