Skip to content

Commit

Permalink
Merge pull request #108 from naviqore/NAV-162-Fix-range-raptor-return…
Browse files Browse the repository at this point in the history
…ing-no-connections-when-no-departures-occur-during-range

FIX: NAV-162 - Ensure range raptor also returns routes when no depart…
  • Loading branch information
munterfi authored Aug 27, 2024
2 parents b7fa0f1 + 4e26d74 commit e870caa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/ch/naviqore/raptor/router/Query.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@ private List<Integer> getRangeOffsets(Set<Integer> markedStops, RouteScanner rou
}
}

// if no range offsets are found, add 0 as default to allow "normal" raptor to run
if (rangeOffsets.isEmpty()) {
rangeOffsets.add(0);
}

return rangeOffsets;
}

Expand Down

0 comments on commit e870caa

Please sign in to comment.