Skip to content

Commit

Permalink
fix(frequencies): increase headway seconds max to 6 hours
Browse files Browse the repository at this point in the history
closes #148
  • Loading branch information
landonreed committed Dec 19, 2018
1 parent cab706f commit e07f019
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/com/conveyal/gtfs/loader/Table.java
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,10 @@ public Table (String name, Class<? extends Entity> entityClass, Requirement requ
new StringField("trip_id", REQUIRED).isReferenceTo(TRIPS),
new TimeField("start_time", REQUIRED),
new TimeField("end_time", REQUIRED),
new IntegerField("headway_secs", REQUIRED, 20, 60*60*2),
// Set max headway seconds to the equivalent of 6 hours. This should leave space for any very long headways
// (e.g., a ferry running exact times at a 4 hour headway), but will catch cases where milliseconds were
// exported accidentally.
new IntegerField("headway_secs", REQUIRED, 20, 60*60*6),
new IntegerField("exact_times", OPTIONAL, 1))
.withParentTable(TRIPS)
.keyFieldIsNotUnique();
Expand Down

0 comments on commit e07f019

Please sign in to comment.