[GraphHopper] Routing between points - path is too short/long

Joel Haasnoot joelhaasnoot at gmail.com
Mon Dec 30 11:19:47 UTC 2013


Hi,
I'm using Graphhopper as a library for a project that needs to precompute a
few paths between points (railway lines in this case). I route between two
lat/lon coordinates and extract the path from the response. My OSM data is
a very sparse graph of just railway lines, which have long edges - but I'm
routing between stations. Stations however are not neccesarily on the line.

The routing works in principle, but the resulting paths are mostly either
too short (guessing the end of the edge closest), or too long (the end of
the edge?). Too long I could fix with postprocessing (tho I prefer not to
do so), but too short means I'm missing part of the path. I've tried
increasing the resolution of the index, with setPreciseIndexResolution(),
but not seeing any change. Is there any way to improve this? Any ideas?

Thanks in advance!

Joel Haasnoot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20131230/8e22812c/attachment.html>


More information about the GraphHopper mailing list