Skip to content

Routing stops using contraction Hierarchy #31

Closed

Description

@quintona

Hi,

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?

Activity

  1. quintona commented on Apr 15, 2013

    @quintona
    Author

    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!

  2. karussell commented on Apr 15, 2013

    @karussell
    Member

    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.

  3. added a commit that references this issue on Jun 23, 2020
  4. added a commit that references this issue on Jul 10, 2020
  5. added a commit that references this issue on Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions