Skip to content

Optimize routing algorithm #1

Closed as not planned
Closed as not planned

Description

@karussell

There should be a graph implementation which is disc based to avoid loading the full graph into memory.

Additionally there should be a memory bound A* implementation like http://en.wikipedia.org/wiki/SMA* to reduce memory consumption while executing the algorithm. Or CH could help here too.

Activity

  1. karussell commented on Oct 28, 2012

    @karussell
    MemberAuthor

    One can now preprocess the graph to create shortcuts (contraction hierarchy) - call OSMReader with osmreader.levelgraph=true and osmreader.chShortcuts=fastest. In addition to this you need to call new LevelGraphStorage with an MMapDirectory. This way it was possible for me today to successfully perform a 500km query on android with only ~15MB (32MB were allocated) within about a minute. Still this is improvable but the base is created. Keep in mind with contraction hierarchy we do not apply any heuristics to achieve this, 'just' clever shortcuts!

  2. karussell commented on May 6, 2013

    @karussell
    MemberAuthor

    There is also beam search

  3. karussell commented on Oct 9, 2013

    @karussell
    MemberAuthor

    Reopening in order to implement memory limitating algorithms. Also look at #104 for possible hard abort condition

  4. karussell commented on Aug 25, 2015

    @karussell
    MemberAuthor

    For none-CH requests one can now increase the heuristical nature and improve speed by a factor of at least 2. See #506

  5. added a commit that references this issue on Jul 18, 2018
  6. added a commit that references this issue on Mar 25, 2020
  7. added a commit that references this issue on Jun 23, 2020
    a49accc
  8. added a commit that references this issue on Jul 10, 2020
    75a162a
  9. easbar commented on Jul 10, 2020

    @easbar
    Member

    Almost eight years later issue #1 got closed 😄

  10. karussell commented on Jul 10, 2020

    @karussell
    MemberAuthor

    Oh, why ... (ah, the commits of #2071 had a link to the issue #1 of the navigation repo ... )

  11. easbar commented on Jul 11, 2020

    @easbar
    Member

    Uh yeah there was a commit in the navigation repo that closed issue number 1 of the navigation repository:

    image

    and now we had this commit here it closed issue number 1 of this repository. Btw were there other issue references (in comments etc.) pointing to navigation issues? For map matching we should also check this and maybe change comments like

    // this is a comment, see #6586

    to

    // this is a comment, see map-matching/#6586
  12. boldtrn commented on Jul 11, 2020

    @boldtrn
    Member

    Oh no, that's really unfortunate. I guess there will be multiple comments like this in the MapMatching Repo?

  13. easbar commented on Jul 11, 2020

    @easbar
    Member

    Yes, but in the navigation code there weren't any. For map-matching we should not forget about this. But actually we should be a bit careful because I think we decided not to squash the map-matching commits (to preserve history) and there might be some commits that auto-fix some issues :)

  14. karussell commented on Jul 12, 2020

    @karussell
    MemberAuthor

    maybe change comments like

    We cannot change commit messages without changing the history that could break other things.

  15. easbar commented on Jul 12, 2020

    @easbar
    Member

    We cannot change commit messages without changing the history that could break other things.

    I meant we should change comments in the code. But even if there is something like fixes #256 in a commit message we could change the commit message when we are merging map-matching? It would not be possible in the map-matching repository, but when we merge it here its no problem to change the commits (they are just new commits for this repository, nothing existing is changed)?

  16. karussell commented on Jul 12, 2020

    @karussell
    MemberAuthor

    I do not like rewriting history for map matching that much as e.g. we would not be able to easily find map matching commits in the graphhopper repo and maybe other disadvantages. E.g. when linking to commits like [here](graphhopper/map-matching#40 (comment) although this is rather rare (found 4 issues).

  17. easbar commented on Jul 12, 2020

    @easbar
    Member

    Ok sure its probably also not a real problem. If some issues are auto-closed we can just re-open them. But do the commit hashes really stay the same even when porting the map-matching repo to here?

  18. karussell commented on Jul 12, 2020

    @karussell
    MemberAuthor
  19. changed the title [-]Optimize storage and routing algorithm for memory restricted environments like Android[/-] [+]Optimize routing algorithm[/+] on Jan 16, 2022
  20. added a commit that references this issue on Jan 7, 2025
  21. added a commit that references this issue on Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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