[GraphHopper] How to find the near by streets/roads of a point

Peter K peathal at yahoo.de
Mon Jul 15 07:06:39 UTC 2013


Hi Georg,

> Given a point is it possible to query the near by roads/streets from
graphhopper.

You can do that via an adapted LocationIDIndex. In a few days/weeks you
can directly use this without changing something.


> This is to find something like a walkable/drivable distance from a
point given a time duration.

You could limit calculation in e.g. Dijkstra via the time duration
(which will limit the shortest path tree) and then the SPT itself will
give you the covered area.


> To look in another perspective, the need is to find the nervous lines
of a place.

What are nervous lines of a place?


> Is it possible to calculate the distance of a line with multiple
points in between?

What do you mean?


> During the graph building process can i selectively index multiple
cities while i feed with a whole country osm file.

You can restrict the boundaries of an indexed area via overriding
OSMReader.isInBounds

Regards,
Peter.



More information about the GraphHopper mailing list