Skip to content

Commit

Permalink
fix: decreasing_or_equal_stop_time_distance includes prevShapeDistTra…
Browse files Browse the repository at this point in the history
…veled (#1631)
  • Loading branch information
cka-y authored Jan 9, 2024
1 parent 33edab9 commit 3edf968
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static class DecreasingOrEqualStopTimeDistanceNotice extends ValidationNotice {
* Actual distance traveled along the shape from the first shape point to the previous stop
* time.
*/
private final double prevStopTimeDistTraveled;
private final double prevShapeDistTraveled;

/** The previous record's `stop_times.stop_sequence`. */
private final int prevStopSequence;
Expand All @@ -113,15 +113,15 @@ static class DecreasingOrEqualStopTimeDistanceNotice extends ValidationNotice {
double shapeDistTraveled,
int stopSequence,
long prevCsvRowNumber,
double prevStopTimeDistTraveled,
double prevShapeDistTraveled,
int prevStopSequence) {
this.tripId = tripId;
this.stopId = stopId;
this.csvRowNumber = csvRowNumber;
this.shapeDistTraveled = shapeDistTraveled;
this.stopSequence = stopSequence;
this.prevCsvRowNumber = prevCsvRowNumber;
this.prevStopTimeDistTraveled = prevStopTimeDistTraveled;
this.prevShapeDistTraveled = prevShapeDistTraveled;
this.prevStopSequence = prevStopSequence;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ public void testNoticeClassFieldNames() {
"prevShapeDistTraveled",
"prevShapePtSequence",
"prevStopSequence",
"prevStopTimeDistTraveled",
"recordId",
"recordSubId",
"routeColor",
Expand Down

0 comments on commit 3edf968

Please sign in to comment.