<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>
      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
href="https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/AbstractFlagEncoder.java#L512">https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/AbstractFlagEncoder.java#L512</a><br>
      <br>
      <a
href="https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/CarFlagEncoder.java#L283">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<br>
      <br>
      On 10.07.2015 18:35, Martin Sauvage wrote:<br>
    </div>
    <blockquote
cite="mid:CACTC8-XPC2bZG2ss=qw5hiyv=nA3iCuch0daUETUido4Wh898Q@mail.gmail.com"
      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 class=""><br>
                  <br>
                  On 09.07.2015 19:46, John Zhao wrote:<br>
                </span></div>
              <span class="">
                <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>
  </body>
</html>