File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
web-bundle/src/main/java/com/graphhopper/resources Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -178,14 +178,11 @@ private BufferFeature calculateSecondaryStartFeature(BufferFeature primaryStartF
178
178
private List <Integer > queryBbox (BBox bbox , String roadName ) {
179
179
final List <Integer > filteredEdgesInBbox = new ArrayList <>();
180
180
181
- this .locationIndex .query (bbox , new LocationIndex .Visitor () {
182
- @ Override
183
- public void onEdge (int edgeId ) {
184
- EdgeIteratorState state = graph .getEdgeIteratorState (edgeId , Integer .MIN_VALUE );
185
- List <String > queryRoadNames = getAllRouteNamesFromEdge (state );
186
- if (queryRoadNames .stream ().anyMatch (x -> x .contains (roadName ))) {
187
- filteredEdgesInBbox .add (edgeId );
188
- }
181
+ this .locationIndex .query (bbox , edgeId -> {
182
+ EdgeIteratorState state = graph .getEdgeIteratorState (edgeId , Integer .MIN_VALUE );
183
+ List <String > queryRoadNames = getAllRouteNamesFromEdge (state );
184
+ if (queryRoadNames .stream ().anyMatch (x -> x .contains (roadName ))) {
185
+ filteredEdgesInBbox .add (edgeId );
189
186
}
190
187
});
191
188
You can’t perform that action at this time.
0 commit comments