You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: web-bundle/src/main/java/com/graphhopper/resources/IsochroneResource.java
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -158,9 +158,9 @@ public Response doGet(
158
158
sites.add(site2);
159
159
}
160
160
});
161
-
if (shortestPathTree.getVisitedNodes() > graphHopper.getMaxVisitedNodes() / 5) {
162
-
thrownewIllegalArgumentException("Too many nodes would have to explored (" + shortestPathTree.getVisitedNodes() + "). Let us know if you need this increased.");
163
-
}
161
+
intconsumedNodes = sites.size();
162
+
if (consumedNodes > graphHopper.getMaxVisitedNodes() / 3)
163
+
thrownewIllegalArgumentException("Too many nodes would be included in post processing (" + consumedNodes + "). Let us know if you need this increased.");
164
164
165
165
// Sites may contain repeated coordinates. Especially for edge-based traversal, that's expected -- we visit
0 commit comments