<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Martin,<br>
      <br>
      it is:<br>
      prepare.chWeighting=shortest<br>
      (or any custom weighting you define)<br>
      <br>
      Regards,<br>
      Peter<br>
      <br>
      On 17.03.2015 11:58, Martin Sauvage wrote:<br>
    </div>
    <blockquote
cite="mid:CACTC8-WgkDJ4E3ChR47cpDXs3G6ML=6PXAyL0JfdJ1qqUj7uAQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Thanks for your answer Peter.
        <div><br>
        </div>
        <div>So what is the script command to import with "shortest"
          option ("graphhopper.sh import *.osm" is apparently for
          fastest option) ?</div>
        <div><br>
        </div>
        <div>Martin</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2015-03-17 11:19 GMT+01: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 text="#000000" bgcolor="#FFFFFF">
              <div>Hi Martin,<span class=""><br>
                  <br>
                  <span>> but please confirm that prepared graph data
                    (provided by </span><font face="Helvetica Neue,
                    Helvetica, Segoe UI, Arial, freesans, sans-serif"
                    color="#333333"><span
                      style="font-size:14px;line-height:22.3999996185303px">graphhopper.sh

                      import *.osm</span></font><span>) is always the
                    same </span><font
                    style="font-size:12.8000001907349px" face="Helvetica
                    Neue, Helvetica, Segoe UI, Arial, freesans,
                    sans-serif" color="#333333"><span
                      style="font-size:14px;line-height:22.3999996185303px">regardless

                      of chosen option (</span></font><span>shortest or
                    fastest).</span><br>
                  <br>
                </span> You'll have to do two different import steps and
                e.g. maintain two separate GraphHopper instances. That
                is the drawback of CH, but you can also disable it and
                use the flexibility mode.<br>
                <br>
                Kind Regards,<br>
                Peter
                <div>
                  <div class="h5"><br>
                    <br>
                    On 16.03.2015 11:45, Martin Sauvage wrote:<br>
                  </div>
                </div>
              </div>
              <div>
                <div class="h5">
                  <blockquote type="cite">
                    <div dir="ltr">
                      <p>Hello,</p>
                      <p>I'm evaluating shortest / fastest route on
                        Android using GH 0.4:</p>
                      <p>hopper = new GraphHopper().forMobile();<br>
                        hopper.setCHWeighting("shortest");<br>
                        hopper.load(path);</p>
                      <p>In this example:</p>
                      <p><span style="line-height:22.3999996185303px"><a
                            moz-do-not-send="true"
href="https://graphhopper.com/maps/?point=48.064%2C-1.6228&point=48.0757%2C-1.6404&locale=fr-FR&layer=Lyrk"
                            target="_blank">https://graphhopper.com/maps/?point=48.064%2C-1.6228&point=48.0757%2C-1.6404&locale=fr-FR&layer=Lyrk</a></span></p>
                      <p><span style="line-height:22.3999996185303px">I
                          don't see any difference using "fastest" and
                          "shortest" options while it seems taking "Rue
                          de la Hallerais" is the shortest.</span></p>
                      <p>Peter, yesterday you said "Note: you can either
                        operate as shortest or fastest for CH, not both.
                        So once you have prepared the graph (and eg.
                        copied to Android) no change is currently
                        possible." </p>
                      <p style="margin-top:0px;margin-bottom:16px"><span>I
                          suppose </span><font
                          style="font-size:12.8000001907349px"
                          face="Helvetica Neue, Helvetica, Segoe UI,
                          Arial, freesans, sans-serif" color="#333333"><span
style="font-size:14px;line-height:22.3999996185303px">once I use "</span></font><span>hopper.load(path)"

                          I cannot change the option but please confirm
                          that prepared graph data (provided by </span><font
                          face="Helvetica Neue, Helvetica, Segoe UI,
                          Arial, freesans, sans-serif" color="#333333"><span
style="font-size:14px;line-height:22.3999996185303px">graphhopper.sh
                            import *.osm</span></font><span>) is always
                          the same </span><font
                          style="font-size:12.8000001907349px"
                          face="Helvetica Neue, Helvetica, Segoe UI,
                          Arial, freesans, sans-serif" color="#333333"><span
style="font-size:14px;line-height:22.3999996185303px">regardless of
                            chosen option (</span></font><span>shortest
                          or fastest).</span><br>
                      </p>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
            <br>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>