Skip to content

Take live traffic conditions into account #32

Closed

Description

@quintona

Add the capability to calculate routes based on a current understanding of road speeds based on live traffic conditions. This would need to include the capability to initialize the graph with known speeds (attained via some data source or via estimate) and then update it later based on changing conditions. The key intentions being that when major conditions exist and the road speeds drop to near zero, that different routes are selected, and in all cases that realistic time estimates are provided for the route based current conditions.

Activity

  1. karussell commented on Apr 15, 2013

    @karussell
    Member

    Using live traffic for the normal graph is easy: just apply the different speed conditions to the edge:

    someEdgeIterator.flags(carFlagEncoder.flags(speed, direction))

    For a contraction hierarchies algorithm (the faster one) this is not possible.

  2. quintona commented on Apr 15, 2013

    @quintona
    Author

    When you say it isn't possible, you mean it isn't implemented or it simply isn't possible? You will excuse the ignorance on the contraction hierarchies.

  3. karussell commented on Apr 15, 2013

    @karussell
    Member

    IMO it is not possible for CH: http://algo2.iti.kit.edu/download/dtch.pdf

    So, you can rebuild the hierarchy after a change. If this rebuilding is fast enough then of course it is possible in practise. (BTW: for mobile devices this CH rebuild stage is NOT possible at all due to the heavy resource utilization!).

    Besides all this, the CH preparation in graphhopper is very slow at the moment and could need some improvements like parallelization etc. And there are other fast algorithms where a custom metric is better recognized, see http://research.microsoft.com/apps/pubs/default.aspx?id=145688

  4. quintona commented on May 6, 2013

    @quintona
    Author

    I would prefer to go the route of the rebuild. How/where should I set the speed for a given OSM way when doing the graph build?

  5. karussell commented on May 6, 2013

    @karussell
    Member

    See e.g. CarFlagEncoder.SPEED

  6. karussell commented on Aug 7, 2013

    @karussell
    Member

    I do not expect open or free sources for traffic conditions, so we won't be able to create any specifics for this. Reopen if you have an idea what could be improved.

  7. added a commit that references this issue on Sep 13, 2017
  8. 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions