You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was interested in the project based on the timings I see on the web demo. I am seeing roughly 6ms times for complex routes across London. So I thought I would try this locally to see how you had done this and get my hands dirty with the code. I started by getting things built and then adding a simple unit test, which you can see here: https://gist.github.com/quintona/5385839
Essentially, I took the british Isles dataset from OSM and reduced it down to a sub set of London using osmosis. This output file I called london.osm.
When I run without contraction hierarchies, it works fine but takes 300ms. It doesn't work at all when I set contraction hierarchies to true, fastest or shortest.
I obviously delete the associated data directory (london-gh) after I change between these. Is this a defect or am I doing something wrong in this example?
So, the next important issue is performance. The web demo shows this route taking 0.007s (7ms), when I run the example is always takes around 100ms. What is different in the way I have created the data or written the code in order to get the 10x performance difference?
Thanks for you report! You should take care that a LevelGraphStorage is built while creating the graph files (scan log files for LevelGraphStorage and GraphStorage should NOT appear). Users often report this problem so I'll have to make sure now that a proper warning/exception is printed to make things clear.
BTW: we should move this discussion to the mailing list so that others can benefit.
Activity
quintona commentedon Apr 15, 2013
Ok, so I actually got that working. Updated code: https://gist.github.com/quintona/e5208c7b68aced6f19e6.
So, the next important issue is performance. The web demo shows this route taking 0.007s (7ms), when I run the example is always takes around 100ms. What is different in the way I have created the data or written the code in order to get the 10x performance difference?
Thanks!
karussell commentedon Apr 15, 2013
Thanks for you report! You should take care that a LevelGraphStorage is built while creating the graph files (scan log files for LevelGraphStorage and GraphStorage should NOT appear). Users often report this problem so I'll have to make sure now that a proper warning/exception is printed to make things clear.
BTW: we should move this discussion to the mailing list so that others can benefit.
karussell commentedon Apr 15, 2013
discussion now in mailing list: http://lists.openstreetmap.org/pipermail/graphhopper/2013-April/000038.html
fix tests #31
Merge of navigation repository (#2071)
RSPS-1252: Replace println by logger in matrix flow (graphhopper#31)
Merge pull request graphhopper#50 from graphhopper/graphhopper#31-err…