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
path details with 'time' returns server error #1216
Example query is this and if you move the second point (the only via point) then it starts to get valid.
2017-11-09 20:12:27,793 [qtp1373419525-173] WARN org.eclipse.jetty.server.HttpChannel - /route
java.lang.IllegalStateException: PathDetail list time is inconsistent due to entries 61566 [237, 244] vs. 12510 [245, 249]
at com.graphhopper.util.PathSimplification.simplify(PathSimplification.java:137)
at com.graphhopper.util.PathMerger.doWork(PathMerger.java:144)
at com.graphhopper.routing.template.ViaRoutingTemplate.isReady(ViaRoutingTemplate.java:155)
at com.graphhopper.GraphHopper.calcPaths(GraphHopper.java:1072)
Or maybe use the first variable of the previous path detail directly.
As test (in GraphHopperIT or GraphHopperServletIT) I think we currently only have A-B-C where at B we do a U-turn, but we also need a "straight" case where this error happens. Plus add a case A-B-C-D with path details
I think this is because the points of both paths are added to create the fullPoints (the via point is duplicate) but for the path details we do the correct lastIndex += edge.fetchWayGeometry(2).size(); instead of lastIndex += edge.fetchWayGeometry(3).size(); in PathDetailsFromEdges. @boldtrn do you think this could be the reason?
Yes, I think the reason is similar to the issue reported in #1138. I think we lingered too long in #1138, because removing the points from the Instructions was not that easy. I would propose that we fix this issue now by remove the duplicated point for the ViaInstructions.
Hmmh, when we change this then the test GraphHopperIT.testMonacoPathDetails fails at
Yes this is expected I think :). I will create a fresh PR for this issue.
Activity
karussell commentedon Nov 9, 2017
The problem is likely in PathMerger and it should be:
Or maybe use the
firstvariable of the previous path detail directly.As test (in GraphHopperIT or GraphHopperServletIT) I think we currently only have A-B-C where at B we do a U-turn, but we also need a "straight" case where this error happens. Plus add a case A-B-C-D with path details
karussell commentedon Nov 10, 2017
Hmmh, when we change this then the test GraphHopperIT.testMonacoPathDetails fails at:
I think this is because the points of both paths are added to create the fullPoints (the via point is duplicate) but for the path details we do the correct
lastIndex += edge.fetchWayGeometry(2).size();instead oflastIndex += edge.fetchWayGeometry(3).size();in PathDetailsFromEdges. @boldtrn do you think this could be the reason?boldtrn commentedon Nov 13, 2017
Yes, I think the reason is similar to the issue reported in #1138. I think we lingered too long in #1138, because removing the points from the Instructions was not that easy. I would propose that we fix this issue now by remove the duplicated point for the ViaInstructions.
Yes this is expected I think :). I will create a fresh PR for this issue.
karussell commentedon Nov 17, 2017
This is fixed via #1219 thanks @boldtrn !
Added GMTED2010 as a new elevation source and added an ElevationProvi…
Removed Incorrect Duplicated Point at Via Instructions, fixes graphho…