<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 18. 7. 2014 10:58, Peter wrote:<br>
    </div>
    <blockquote cite="mid:53C8E1C6.9080309@gmx.de" type="cite">
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      <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>
      </div>
    </blockquote>
    I do this always (remove previous directory). I have tried it again
    just to be sure and same result.<br>
    <blockquote cite="mid:53C8E1C6.9080309@gmx.de" type="cite">
      <div class="moz-cite-prefix"> <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 moz-do-not-send="true" class="moz-txt-link-freetext"
          href="https://github.com/graphhopper/graphhopper/issues/1">https://github.com/graphhopper/graphhopper/issues/1</a><br>
        <br>
      </div>
    </blockquote>
    Thanks, I'll watch this issue.<br>
    <blockquote cite="mid:53C8E1C6.9080309@gmx.de" type="cite">
      <div class="moz-cite-prefix"> <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>
      </div>
    </blockquote>
    I'll check it once it will be possible to go over issue 1, thanks.<br>
    <blockquote cite="mid:53C8E1C6.9080309@gmx.de" type="cite">
      <div class="moz-cite-prefix"> <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 moz-do-not-send="true" class="moz-txt-link-freetext"
          href="https://github.com/graphhopper/graphhopper/issues/94">https://github.com/graphhopper/graphhopper/issues/94</a><br>
        <a moz-do-not-send="true" 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>
      </div>
    </blockquote>
    I already watch there threads ;)<br>
    <blockquote cite="mid:53C8E1C6.9080309@gmx.de" type="cite">
      <div class="moz-cite-prefix"> <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>
      </div>
    </blockquote>
    <br>
    Ok, so to sumarize it (mainly for me if I understand all correctly)<br>
    <br>
    1. it's not possible to create one routing pack for car, bike, foot
    for Android devices because of memory limits (I agree, they are
    tight - but it's a lot better on 4.x devices)<br>
    2. it's not possible to route over more then one pack. So if I
    provide for users separate routing packs for every country, it's
    possible to use only one file at time<br>
    3. improved instructions are planned (mainly roundabouts), but not
    yet implemented<br>
    4. turn restrictions are not yet implemented<br>
    <br>
    Hmm mainly because of first two issues, I see serious problems with
    some public distribution for now. I'll have to watch your progress
    then and provide working solution just for private group of users on
    Locus forum. They are really good in testing and may provide you
    valuable feedback :)<br>
    <br>
    <br>
    <blockquote cite="mid:53C8E1C6.9080309@gmx.de" type="cite">
      <div class="moz-cite-prefix"> 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=UTF-8"
          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 moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
      </blockquote>
      <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>