Skip to content

Commit

Permalink
modified stop_too_far_from_shape so it only checks stop times records…
Browse files Browse the repository at this point in the history
… that have a stop_id. It should ignore stop times that don't have a stop_id. (#1884)
  • Loading branch information
qcdyx authored Oct 10, 2024
1 parent fa91ddc commit 45c6c24
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ private void reportProblems(
Set<String> reportedStopIds,
NoticeContainer noticeContainer) {
for (Problem problem : problems) {
if (problem.getStopTime().stopId().isEmpty()) {
// Ignore stop times without a stop_id
continue;
}
if (problem.getType().equals(ProblemType.STOP_TOO_FAR_FROM_SHAPE)
&& !reportedStopIds.add(problem.getStopTime().stopId())) {
// Ignore stops already reported before.
Expand Down

0 comments on commit 45c6c24

Please sign in to comment.