[GraphHopper] Traversing the graph from a GPS location

Bram Duvigneau bram at bramd.nl
Fri Jun 27 01:36:16 UTC 2014


Hello,

I'm trying to traverse the graph from a known position. I would like to
display the closest edge in a meaningful way (e.g. name or type of way
if there is no name). Also I would like to make a list of near by
intersections.

I use graphHopper.getLocationIndex.findClosest.getClosestEdge and this
gives me an edge. However, it seems there are edges without a name and
in that case I would like to interrogate the edge to get any meaningful
information such as the type of way. I looked through the javadocs, but
I can't find how to do that.

Then for the second question. What is the best method to get all
intersections (I think the GraphHopper term is tower nodes?) on a
specific way? As I understand it now, a way might be build up with
various edges. Any pointers to code examples, docs or GraphHopper
sources to study are welcome.

Best,

Bram

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140627/1713eabd/attachment.pgp>


More information about the GraphHopper mailing list