<div dir="ltr">Hi Martin,<div><br></div><div>I have face the same problem.</div><div>At last I found it caused by maxspeed=3 in the osm data.</div><div>carFlagEncoder use 5 as factor of speed encoding.</div><div>every number below 5 will be convert to 0.</div><div><br></div><div>Then you will have some edges in the graph with speed=0. </div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><b>Best Regards,</b><div><b>ZhiQiang ZHAO</b></div></div></div>
<br><div class="gmail_quote">On Thu, Jul 9, 2015 at 5:20 AM, Martin Sauvage <span dir="ltr"><<a href="mailto:martin.sauvage@gmail.com" target="_blank">martin.sauvage@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello,</div><div><br></div><div>I'm facing an issue when routing with shortest path between these 2 GPS points:</div><div><div>47.194150,-1.676384</div><div>47.197470,-1.671832</div></div><div><br></div><div>Caused by: java.lang.IllegalStateException: Speed cannot be 0 for unblocked edge, use access properties to mark edge blocked! Should only occur for shortest path calculation. See #242.</div><div><br></div><div>I suspect the shortest route tries to take the ferry (Bac Indret) with no defined speed while the fastest route provides:</div><div><a href="https://graphhopper.com/maps/?point=47.19415%2C-1.676384&point=47.19747%2C-1.671832&locale=fr-FR&layer=Lyrk" target="_blank">https://graphhopper.com/maps/?point=47.19415%2C-1.676384&point=47.19747%2C-1.671832&locale=fr-FR&layer=Lyrk</a><br></div><div><br></div><div>Is it a GH bug or an OSM data issue? Is there any way to fix this crash (do not take ferry with shortest route) ?</div><div><br></div><div>Thanks,</div><div>Martin</div><div><br></div></div>
<br>_______________________________________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
<br></blockquote></div><br></div>