Skip to content

Commit

Permalink
fix(validate): fix rounded travel times check
Browse files Browse the repository at this point in the history
  • Loading branch information
landonreed committed Mar 13, 2019
1 parent 263ee5a commit fb45651
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void validateTrip(Trip trip, Route route, List<StopTime> stopTimes, List<
registerError(currStopTime, DEPARTURE_BEFORE_ARRIVAL);
}
// Detect if travel times are rounded off to minutes.
boolean bothTravelTimesRounded = areTravelTimesRounded(prevStopTime);
boolean bothTravelTimesRounded = areTravelTimesRounded(prevStopTime) && areTravelTimesRounded(currStopTime);
double travelTimeSeconds = currStopTime.arrival_time - prevStopTime.departure_time;
// If travel times are rounded and travel time is zero, determine the maximum and minimum possible speed
// by adding/removing one minute of slack.
Expand Down

0 comments on commit fb45651

Please # to comment.