<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Martin,<br>
      <br>
      thanks again for the report, really important to get this fixed!
      I've created an issue as something seems wrong:<br>
      <a class="moz-txt-link-freetext" href="https://github.com/graphhopper/graphhopper/issues/501">https://github.com/graphhopper/graphhopper/issues/501</a><br>
      <br>
      Let us move the discussion there.<br>
      <br>
      Regards,<br>
      Peter<br>
      <br>
      On 16.08.2015 16:18, Martin Sauvage wrote:<br>
    </div>
    <blockquote
cite="mid:CACTC8-XB_ZR+WuXm3CdY7h-9dJ=9Nya+jjUEXuLadmz13=KB=A@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello Peter,
        <div><br>
        </div>
        <div>I'm pretty sure there is a problem with this specific ferry
          link (named "Bac Indret") even with the latest version of GH.
          I tried on other ferry link and GH works fine.</div>
        <div><br>
        </div>
        <div>If you test this:</div>
        <div><a moz-do-not-send="true"
href="https://graphhopper.com/maps/?point=47.19415%2C-1.676384&point=47.19747%2C-1.671832&locale=fr-FR&layer=Lyrk"
            target="_blank" style="font-size:12.8000001907349px">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>You will see only bikes take the ferry while foot and car
          do not use it.</div>
        <div><br>
        </div>
        <div>OSM tags for this ferry seem to be fine (use duration and
          opening hour tags also)</div>
        <div><br>
        </div>
        <div>In addition, using directions thru OSM web site, MapQuest
          or OSRM provides correct route while GH meets some issue
          (route is not found)</div>
        <div><br>
        </div>
        <div><a moz-do-not-send="true"
href="http://www.openstreetmap.org/directions?engine=mapquest_foot&route=47.19498%2C-1.67554%3B47.19774%2C-1.67202">http://www.openstreetmap.org/directions?engine=mapquest_foot&route=47.19498%2C-1.67554%3B47.19774%2C-1.67202</a><br>
        </div>
        <div><br>
        </div>
        <div>Regards,</div>
        <div>Martin  </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2015-07-13 10:32 GMT+02:00 Peter <span
            dir="ltr"><<a moz-do-not-send="true"
              href="mailto:graphhopper@gmx.de" target="_blank">graphhopper@gmx.de</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div>Hi Martin,<br>
                <br>
                hmmh, if the speed is somehow calculated to be 0 then
                the access should be set to false making the ferry no
                longer available. And if the speed is not 0 then the
                exception should not be thrown.<br>
                <br>
                Additionally in this case I see that the unknownSpeed
                *should* be selected but it should be 5km/h
                (living_street):<br>
                <a moz-do-not-send="true"
href="https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/AbstractFlagEncoder.java#L512"
                  target="_blank">https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/AbstractFlagEncoder.java#L512</a><br>
                <br>
                <a moz-do-not-send="true"
href="https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/CarFlagEncoder.java#L283"
                  target="_blank">https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/CarFlagEncoder.java#L283</a><br>
                <br>
                Maybe you can debug this a bit and tell if the speed of
                the edge is 0 or not and why.<br>
                <br>
                Also when switching branches make sure you remove the
                target folders and/or rebuild in your IDE.<br>
                <br>
                Regards,<br>
                Peter
                <div>
                  <div class="h5"><br>
                    <br>
                    On 10.07.2015 18:35, Martin Sauvage wrote:<br>
                  </div>
                </div>
              </div>
              <div>
                <div class="h5">
                  <blockquote type="cite">
                    <div dir="ltr">Hi,
                      <div><br>
                      </div>
                      <div>I tried on master and I still got the same
                        illegal state exception, so apparently <span
                          style="font-size:12.8000001907349px">ZhiQiang
                          fix doesn't solve the problem (is it a ferry
                          link only issue?).</span></div>
                      <div><span style="font-size:12.8000001907349px">Any
                          idea?</span></div>
                      <div><span style="font-size:12.8000001907349px"><br>
                        </span></div>
                      <div><span style="font-size:12.8000001907349px">Thanks,</span></div>
                      <div><span style="font-size:12.8000001907349px">Martin</span></div>
                      <div><span style="font-size:12.8000001907349px"><br>
                        </span></div>
                      <div><span style="font-size:12.8000001907349px"><br>
                        </span></div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">2015-07-10 10:50
                        GMT+02:00 Peter <span dir="ltr"><<a
                            moz-do-not-send="true"
                            href="mailto:graphhopper@gmx.de"
                            target="_blank">graphhopper@gmx.de</a>></span>:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div bgcolor="#FFFFFF" text="#000000">
                            <div>Hi Martin, Hi ZhiQiang,<br>
                              <br>
                              this could be related to the bug ZhiQiang
                              mentioned but this was already fixed:<br>
                              <a moz-do-not-send="true"
                                href="https://github.com/graphhopper/graphhopper/issues/367"
                                target="_blank">https://github.com/graphhopper/graphhopper/issues/367</a><br>
                              <br>
                              This can only occur for shortest path
                              routing:<br>
                              <a moz-do-not-send="true"
                                href="https://github.com/graphhopper/graphhopper/issues/242"
                                target="_blank">https://github.com/graphhopper/graphhopper/issues/242</a><br>
                              <br>
                              Martin, do you use master or a 0.4 branch?<br>
                              <br>
                              Regards,<br>
                              Peter<span><br>
                                <br>
                                On 09.07.2015 19:46, John Zhao wrote:<br>
                              </span></div>
                            <span>
                              <blockquote type="cite">
                                <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><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
                                        moz-do-not-send="true"
                                        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 moz-do-not-send="true"
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>
                                        <br>
                                      </div>
                                    </blockquote>
                                  </div>
                                </div>
                              </blockquote>
                            </span><br>
                          </div>
                        </blockquote>
                      </div>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>