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
{{ message }}
Repository navigation
Negative time in rare cases for encoders with two weights per edge #178
When using bike2 sometimes negative times occures in a path. There are two problems:
If the speed is infinity ("blocking edge") then in Path.calcMillis a long value will be calculated converted which overflows (infinity double => largest long) and results in negative time!
In AddShortcutHandler.foundShortcut (PrepareContractionHierarchies.java) the flags should be overwritten only if skipped edges are identical. This is really rare as the two nodes (from and to) and the weight (which is double!) have to be identical.
The bug occured here (cannot be seen as bike2 is not yet life):
Activity
Indicate which layers use vector tiles, fix graphhopper#178