Find closest N-edges

I would like to find the closest N edges to a given GPS point so that I can further refine the selection based on some custom code. Is this possible? I can easily find the closest edge using graphHopper.getLocationIndex.findClosest but cannot work out how to expand this result set to include the the next N-1 nearest edges.

Hi,
I don’t know. But I’m interested too.
Question B: What do we get for " a closest edge"?
I tried it and I expected to get some points on the closest road where the navigation would begin. But that is not the case.


I asked for something near the green point and the other points where something I got with

QueryResult qr = index.findClosest(location.lat, location.longd, EdgeFilter.ALL_EDGES );
EdgeIteratorState edge = qr.getClosestEdge();
PointList ghPoint3DS = edge.fetchWayGeometry(0);
for (int i = 0; i < ghPoint3DS.size(); i++) {
    System.out.println("got point " + i + " along: " + ghPoint3DS.getLat(i) + ", " + ghPoint3DS.getLon(i));
}

It is not exactly what you asked, but a similar feature is possible in 0.13:

Hey,
I don’t understand your answer. I may not be that educated.
I still don’t know how my start point and the points I’ve got from the queryResult are related.