Get Nodes around particular point

Hello Graphhopper Devs,
Is it possible to find all the nodes around a particular point (lat, long), given a certain distance from the point (radius). Is there a method that can do this?

I am using JAVA.
I am new to Graphhopper and I haven’t found an answer or a solution to this anywhere.

Thanks in advance.

maybe this?
https://graphhopper.com/api/1/examples/#isochrone

2 Likes

The isochrone is also open source: https://github.com/graphhopper/graphhopper#for-analysis

In master branch you can also try locationIndex.query(BBox), see https://github.com/graphhopper/graphhopper/pull/1485

1 Like

Thanks for your prompt replies.
The Isochrone API provides a solution to my issue.

I ran into another problem. I can’t use GHRequest to make calls to the Isochrone API (from my Java code).
What is the right class for Isochrone API calls?

The Java API is explained here: https://github.com/graphhopper/graphhopper/blob/master/docs/isochrone/java.md

The web API is explained here: https://github.com/graphhopper/graphhopper/blob/master/docs/web/api-doc.md#isochrone

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.