<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hey Menion,<br>
      <br>
      <b>> Issue 1</b> osmreader.acceptWay=car,bike<br>
      <br>
      You'll have to set chShortcuts=no like you did but be sure you
      removed the gh folder before you import again otherwise
      graphhopper will load and fail (but should report with meaningful
      error?).<br>
      <br>
      But keep in mind that with chShortcuts=no you cannot really use GH
      on mobile devices (too much RAM required), or vote for magic issue
      #1 ;)<br>
      <a class="moz-txt-link-freetext" href="https://github.com/graphhopper/graphhopper/issues/1">https://github.com/graphhopper/graphhopper/issues/1</a><br>
      <br>
      <br>
      > <b>Issue 2 </b>osmreader.acceptWay=car,bike,foot,mtb<br>
      <br>
      You can set osmreader.bytesForFlags=8<br>
      note: this isn't tested that much :)<br>
      <br>
      <br>
      > Otherwise I ride during a week almost 300 km with car only
      using GraphHopper and it works really well. <br>
      > What I really miss are roundabouts, exits from highways and
      too much "go straight" orders on places where it's really not
      needed.<br>
      <br>
      Yes, turn instructions are suboptimal. See these issues for some
      discussion about it:<br>
      <a class="moz-txt-link-freetext" href="https://github.com/graphhopper/graphhopper/issues/94">https://github.com/graphhopper/graphhopper/issues/94</a><br>
      <a class="moz-txt-link-freetext" href="https://github.com/graphhopper/graphhopper/issues/185">https://github.com/graphhopper/graphhopper/issues/185</a><br>
      <br>
      Where #94 contains a workaround from a user, but this won't work
      properly if CH is active.<br>
      <br>
      <br>
      > Anyway routing is fast and quite precise. Nice work.<br>
      <br>
      Thanks! Still keep in mind that car routing is without turn
      restrictions (is top priority currently)<br>
      <br>
      Kind Regards,<br>
      Peter.<br>
      <br>
      <br>
      On 18.07.2014 10:43, Jiří Mlavec wrote:<br>
    </div>
    <blockquote cite="mid:53C8DE44.90004@asamm.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <b>Hello Peter,</b><br>
      <br>
      I'm trying to search some information about generating routing
      files, but no success, so it will be nice, if you may point me on
      correct way. I'm trying to generate routing files for Android (on
      Android using latest graphhopper-0.4-SNAPSHOT-android) and ...<br>
      <br>
      Sample map - czech-republic-latest.osm.pbf,  390 MB<br>
      <br>
      <u>Generating</u><br>
      osmreader.acceptWay=car<br>
        result: 93 MB, works fine<br>
      <br>
      osmreader.acceptWay=foot<br>
        result: 140 MB, works fine<br>
      <br>
      osmreader.acceptWay=bike<br>
        result: 150 MB, works fine<br>
      <br>
      <b>Issue 1</b><br>
      osmreader.acceptWay=car,bike<br>
      generator ends on: <br>
      <i>Exception in thread "main" java.lang.IllegalStateException:
        Multiple encoders are active. cannot return one:bike,car</i><i><br>
      </i><i>    at
com.graphhopper.routing.util.EncodingManager.getSingle(EncodingManager.java:329)</i><br>
      <br>
      after set 'prepare.chShortcuts=no'<br>
        result: 93 MB (exactly same as car only), don't work!<br>
      <br>
      requests on car or bike route ends with<br>
      <i>java.lang.IllegalStateException: Cannot load the graph when
        using instance of com.graphhopper.storage.LevelGraphStorage and
        location:
        /storage/emulated/0/Locus/mapsVector/czech-republic-latest.osm-gh/</i><br>
      <br>
      <b>Issue 2</b><br>
      osmreader.acceptWay=car,bike,foot,mtb<br>
      ends immediately on<br>
      <i>Exception in thread "main" java.lang.IllegalArgumentException:
        Encoders are requesting more than 32 bits of way flags. Decrease
        the number of vehicles or increase the flags to take long.</i><i><br>
      </i><i>    at
com.graphhopper.routing.util.EncodingManager.registerEncoder(EncodingManager.java:200)</i><br>
      <br>
      Is there anything I can do, to fix it. Mainly first issue.<br>
      <br>
      If answer already exists, please point me on correct place.<br>
      <br>
      <b>Below line</b><br>
      <br>
      Otherwise I ride during a week almost 300 km with car only using
      GraphHopper and it works really well. What I really miss are
      roundabouts, exits from highways and too much "go straight" orders
      on places where it's really not needed. Anyway routing is fast and
      quite precise. Nice work.<br>
      <br>
      with regards, <br>
          Menion<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
GraphHopper mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>