<div dir="ltr">Thanks, i will try to do that.<div><br></div><div>Best Regards,</div><div>Bruno</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 21, 2013 at 3:40 PM, Peter K <span dir="ltr"><<a href="mailto:peathal@yahoo.de" target="_blank">peathal@yahoo.de</a>></span> wrote:<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 Bruno,<br>
      <br>
      some things to clarify:<br>
      <br>
       * if you need CH you need the preparation step (your graph size
      will double roughly) and you are tight to only one vehicle<br>
       * Now, if you setup GraphHopper on Android to use FOOT (and CH)
      you have to use FOOT for the preparation step which you do on your
      desktop computer<br>
       * if you don't need CH you could import all vehicles and query
      what you like<div class="im"><br>
      <br>
      > GraphHopper tmpHopp = new GraphHopper().forMobile(); <br>
      <br></div>
      That is just a convenience method. Have a look at the source to
      get better understanding of it.<div class="im"><br>
      <br>
      > "An error happend while creating graph:Encoding does not
      match Graphhopper config:
      foot:com.graphhopper.routing.util.FootFlagEncoder Graph:
      car:com.graphhopper.routing.util.CarFlagEncoder"<br>
      <pre style="margin-top:0px;margin-bottom:0px"><span style="white-space:normal"><font face="arial">
</font></span></pre></div>
      You are trying to load an already imported graph (where only car
      was imported) with configuration 'foot'. Just drop the graphhopper
      folder on disc and re-run the import procedure for the new config.<br>
      <br>
      Regards,<br>
      Peter.<br>
      <br>
      <br>
    </div><div><div class="h5">
    <blockquote type="cite">
      <div dir="ltr">Hi Petter,
        <div>thanks for the quick response :)</div>
        <div><br>
        </div>
        <div>I have a few questions related of what you sayd,</div>
        <div>I'm making the app for android offline, so i'm using the </div>
        <div>
          <br>
        </div>
        <div>GraphHopper tmpHopp = new GraphHopper().forMobile(); <br>
        </div>
        <div><br>
        </div>
        <div>I probably cant use as it is showed in the <span style="font-family:arial,sans-serif;font-size:13px">GraphHopperTest</span><span style="font-family:arial,sans-serif;font-size:13px"> </span></div>
        <div><span style="font-family:arial,sans-serif;font-size:13px"><br>
          </span></div>
        <div>
          <pre style="margin-top:0px;margin-bottom:0px"><div style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;padding-left:10px">
<span>instance</span> <span style="font-weight:bold">=</span> <span style="font-weight:bold">new</span> <span>GraphHopper</span><span style="font-weight:bold">().</span><span style="color:rgb(0,128,128)">init</span><span style="font-weight:bold">(</span></div>

<div style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;padding-left:10px">                <span style="font-weight:bold">new</span> <span style="color:rgb(153,0,0);font-weight:bold">CmdArgs</span><span style="font-weight:bold">().</span></div>

<div style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;padding-left:10px">                <span>put</span><span style="font-weight:bold">(</span><span style="color:rgb(221,17,68)">"osmreader.acceptWay"</span><span style="font-weight:bold">,</span> <span style="color:rgb(221,17,68)">"FOOT,CAR"</span><span style="font-weight:bold">). ...</span></div>

<div style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;padding-left:10px"><span style="color:rgb(34,34,34);font-family:arial;font-size:small;line-height:normal;white-space:normal">

</span></div><div style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;padding-left:10px"><span style="color:rgb(34,34,34);font-family:arial;font-size:small;line-height:normal;white-space:normal">

</span></div><div style="padding-left:10px"><font face="arial"><span style="white-space:normal">I used the </span></font><span style="font-family:arial,sans-serif;font-size:13px;white-space:normal">Java API and try to do it in the code</span></div>

<div style="padding-left:10px"><span style="font-family:arial,sans-serif;font-size:13px;white-space:normal">
</span></div><span style="font-family:arial,sans-serif;font-size:13px;white-space:normal">hopper.setEncodingManager(new EncodingManager("FOOT")) </span></pre>
          <pre style="margin-top:0px;margin-bottom:0px"><font face="arial, sans-serif" size="3"><span style="white-space:normal">
</span></font></pre>
          <pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial;white-space:normal">i got an error and i'm thinkind the problem is with the .map e got from my contry that probably dont have FOOT option</span></pre>

          <pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial;white-space:normal">
</span></pre>
          <pre style="margin-top:0px;margin-bottom:0px"><span style="white-space:normal"><font face="arial">"An error happend while creating graph:Encoding does not match Graphhopper config: foot:com.graphhopper.routing.util.FootFlagEncoder Graph: car:com.graphhopper.routing.util.CarFlagEncoder"</font></span></pre>

          <pre style="margin-top:0px;margin-bottom:0px"><span style="white-space:normal"><font face="arial">
</font></span></pre>
          <pre style="margin-top:0px;margin-bottom:0px"><span style="white-space:normal"><font face="arial">just to check i take out the setEncodingManager and read the log while its working</font></span></pre>
          <pre style="margin-top:0px;margin-bottom:0px"><span style="white-space:normal"><font face="arial">
</font></span></pre>
          <pre style="margin-top:0px;margin-bottom:0px"><font face="arial"><span style="white-space:normal">Tag: GH  

Text: found graph LevelGraphStorage|car|MMAP_STORE|1,2,1,1,1,1, nodes 562252"</span></font></pre>
          <pre style="margin-top:0px;margin-bottom:0px"><font face="arial"><span style="white-space:normal">
</span></font></pre>
          <pre style="margin-top:0px;margin-bottom:0px"><font face="arial"><span style="white-space:normal">
</span></font></pre>
          <pre style="margin-top:0px;margin-bottom:0px"><font face="arial"><span style="white-space:normal">do you think i'm having a problem with the project or maybe i downloaded a map that doesnt have the foot option?</span></font></pre>

          <pre style="margin-top:0px;margin-bottom:0px"><font face="arial"><span style="white-space:normal">
</span></font></pre>
          <pre style="margin-top:0px;margin-bottom:0px"><font face="arial"><span style="white-space:normal">i download the Portugal information from the website you have in the Android Demo</span></font></pre>
          <pre style="margin-top:0px;margin-bottom:0px"><a href="http://download.geofabrik.de/europe.html" target="_blank">http://download.geofabrik.de/europe.html</a><font face="arial"><span style="white-space:normal">
</span></font></pre>
          <pre style="margin-top:0px;margin-bottom:0px"><font face="arial"><span style="white-space:normal">
</span></font></pre>
          <pre style="margin-top:0px;margin-bottom:0px"><font face="arial"><span style="white-space:normal">
</span></font></pre>
          <pre style="margin-top:0px;margin-bottom:0px"><font face="arial"><span style="white-space:normal">
</span></font></pre>
          <pre style="margin-top:0px;margin-bottom:0px"></pre>
          <pre style="margin-top:0px;margin-bottom:0px"><span style="white-space:normal"><font face="arial">

</font></span><div style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:18px;padding-left:10px"><span style="font-weight:bold"><div>

</div></span></div></pre>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Mon, Oct 21, 2013 at 1:32 PM, Peter
          K <span dir="ltr"><<a href="mailto:peathal@yahoo.de" target="_blank">peathal@yahoo.de</a>></span>
          wrote:<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 Bruno,
                <div><br>
                  <br>
                  > There is more documentation about the
                  Graphhopper? <br>
                  <br>
                </div>
                The unit tests and the wiki are for documentation
                <div><br>
                  <br>
                  <br>
                  > How can i change the routing for pedestrians
                  instead of routing for Cars?<br>
                  <br>
                </div>
                You can configure this in the config.properties or if
                you prefer the Java API do<br>
                hopper.setEncodingManager(new EncodingManager("FOOT")) <br>
                or see the GraphHopperTest and how to specify the
                osmreader.acceptWay property
                <div><br>
                  <br>
                  <br>
                  > Do i need to create the routing data specifically
                  for pedestrians before put the -gh info in the SD
                  card?<br>
                  <br>
                </div>
                Only if you use the speed up technic 'contraction
                hierarchies', which is the default. Disable it via
                config.properties or hopper.disableCHShortcuts()<br>
                <br>
                Regards,<br>
                Peter.<br>
                <br>
                <br>
              </div>
              <div>
                <div>
                  <blockquote type="cite">
                    <div dir="ltr">Hello,
                      <div><br>
                      </div>
                      <div>I'm trying to create an app for android that
                        show the route for pedestrians.</div>
                      <div>I now have Graphhopper prepared and running
                        in my Android device as the examples are show in
                        the Android Demo.</div>
                      <div><br>
                      </div>
                      <div>There is more documentation about the
                        Graphhopper? </div>
                      <div>How can i change the routing for pedestrians
                        instead of routing for Cars?</div>
                      <div><br>
                      </div>
                      <div>I saw in the Low Level API "<span>EncodingManager</span><span>
                        </span><span>em</span><span> </span><span>=</span><span>
                        </span><span>new</span><span> </span><span>EncodingManager</span><span>(</span><span>"CAR"</span><span>);"</span>,</div>
                      <div>do i need to do something like this but for
                        pedestrianīs? Do i need to create the routing
                        data specifically for pedestrians before put the
                        -gh info in the SD card?</div>
                      <div><br>
                      </div>
                      <div>Sorry for the bad English and thanks in
                        advance,</div>
                      <div><br>
                      </div>
                      <div>Best Regards,</div>
                      <div>Bruno</div>
                      <br>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            GraphHopper mailing list<br>
            <a href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a><br>
            <a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:15px">t</span></font>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
GraphHopper mailing list
<a href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
    </blockquote>
    <br>
  </div></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" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size:15px">t</span></font>
</div>