<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"><br>
    </div>
    <blockquote
cite="mid:CAOo7f_d48h+yYb5Ck95Uk95i+C4O1ggHXFXC8kAk_gU89rpVLA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Can you please tell me how to create routing files
        which are compatible with older version of code available.</div>
    </blockquote>
    <br>
    You need code from that time. But keep in mind that there is no
    reason for that old file format and that I cannot give any support
    for this.<br>
    <br>
    Peter.<br>
    <br>
    <br>
    <blockquote
cite="mid:CAOo7f_d48h+yYb5Ck95Uk95i+C4O1ggHXFXC8kAk_gU89rpVLA@mail.gmail.com"
      type="cite">
      <div dir="ltr"> I have sucessfully integrated that code into my
        app it is working good with berlin-gh routing files but when i
        create my new routing files by
        <div>
          <br>
        </div>
        <div style="">run.sh pakistan-latest.osm ui</div>
        <div style=""><br>
        </div>
        <div style="">these files are not working. </div>
        <div style=""><br>
        </div>
        <div style="">you told me to change config.properties and add   <span
            style="font-family:arial,sans-serif;font-size:13px">osmreader.chShortcuts=fastest
            to it.</span></div>
        <div style=""><span
            style="font-family:arial,sans-serif;font-size:13px"><br>
          </span></div>
        <div style=""><span
            style="font-family:arial,sans-serif;font-size:13px">I did
            but still it is creating latest routing files. </span></div>
        <div style=""><span
            style="font-family:arial,sans-serif;font-size:13px"><br>
          </span></div>
        <div style=""><span
            style="font-family:arial,sans-serif;font-size:13px">my
            latest routing files include</span></div>
        <div style=""><span
            style="font-family:arial,sans-serif;font-size:13px"><br>
          </span></div>
        <div style=""><span
            style="font-family:arial,sans-serif;font-size:13px">nodes</span></div>
        <div style=""><span
            style="font-family:arial,sans-serif;font-size:13px">edges</span></div>
        <div style=""><span
            style="font-family:arial,sans-serif;font-size:13px">spatialNIndex</span></div>
        <div style=""><span
            style="font-family:arial,sans-serif;font-size:13px">geometry</span></div>
        <div style=""><br>
        </div>
        <div style=""><br>
        </div>
        <div style=""><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Fri, May 3, 2013 at 10:44 PM, Awais
          Bin Asif <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:09bicsebasif@seecs.edu.pk" target="_blank">09bicsebasif@seecs.edu.pk</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">i mean about berlin-gh which is older version
              routing files.</div>
            <div class="HOEnZb">
              <div class="h5">
                <div class="gmail_extra">
                  <br>
                  <br>
                  <div class="gmail_quote">On Fri, May 3, 2013 at 10:43
                    PM, Awais Bin Asif <span dir="ltr"><<a
                        moz-do-not-send="true"
                        href="mailto:09bicsebasif@seecs.edu.pk"
                        target="_blank">09bicsebasif@seecs.edu.pk</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">if i don't include both mapsforge
                        dependencies it gives errors. it could not find
                        MapActivity. and please tell me about the error
                        i am getting while loading routing files. i have
                        explained in previous mail
                        <div>
                          <br>
                        </div>
                      </div>
                      <div class="gmail_extra"><br>
                        <br>
                        <div class="gmail_quote">
                          <div>
                            <div>On Fri, May 3, 2013 at 10:40 PM, Peter
                              K <span dir="ltr"><<a
                                  moz-do-not-send="true"
                                  href="mailto:peathal@yahoo.de"
                                  target="_blank">peathal@yahoo.de</a>></span>
                              wrote:<br>
                            </div>
                          </div>
                          <blockquote class="gmail_quote"
                            style="margin:0 0 0 .8ex;border-left:1px
                            #ccc solid;padding-left:1ex">
                            <div>
                              <div>
                                <div bgcolor="#FFFFFF" text="#000000">
                                  <div>When you clone&build
                                    graphhopper from github (master
                                    branch) and create the graphhopper
                                    files then they won't be compatible
                                    with the older apk on google code.<br>
                                    <br>
                                    Then, when creating graphhopper
                                    files be sure you do:<br>
                                    osmreader.chShortcuts=fastest<br>
                                    in config.properties<br>
                                    <br>
                                    Peter.<br>
                                    <br>
                                    BTW: two mapsforge dependencies will
                                    sooner or later make problems ...<br>
                                    <br>
                                    <br>
                                  </div>
                                  <div>
                                    <div>
                                      <blockquote type="cite">
                                        <div dir="ltr">And Can you
                                          please tell me if i am
                                          sucessfull in running the demo
                                          project source code. Will it
                                          be able to load and calculate
                                          path using pakistan-gh files
                                          because you have mentioned
                                          that <span
                                            style="font-family:arial,sans-serif;font-size:12.727272033691406px"> </span><a
                                            moz-do-not-send="true"
href="https://code.google.com/p/graphhopper/downloads/detail?name=GraphHopper-0.1.apk&can=2&q="
style="color:purple;font-family:arial,sans-serif;font-size:13px;white-space:nowrap"
                                            target="_blank">GraphHopper-0.1.apk</a> is

                                          not compatible with latest
                                          version of routing files.?</div>
                                        <div class="gmail_extra"><br>
                                          <br>
                                          <div class="gmail_quote">On
                                            Fri, May 3, 2013 at 8:13 PM,
                                            Awais Bin Asif <span
                                              dir="ltr"><<a
                                                moz-do-not-send="true"
                                                href="mailto:09bicsebasif@seecs.edu.pk"
                                                target="_blank">09bicsebasif@seecs.edu.pk</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>Right now i am
                                                  trying to load the
                                                  .map file and load the
                                                  graph files (-gh
                                                  files). i have </div>
                                                <div>  </div>
                                                <div><span
                                                    style="font-family:arial,sans-serif;font-size:12.727272033691406px">graphhopper-0.1-SNAPSHOT-</span><span
style="font-family:arial,sans-serif;font-size:12.727272033691406px">android.jar</span><br>
                                                </div>
                                                <div><span
                                                    style="font-family:arial,sans-serif;font-size:12.727272033691406px">slf4j-android-1.6.1-RC1.jar</span></div>
                                                <div><font face="arial,
                                                    sans-serif">mapsforge-map-0.3.0-jar-with-dependencies.jar </font><br>
                                                </div>
                                                <div>
                                                  <div><font
                                                      face="arial,
                                                      sans-serif">mapsforge-map-0.3.1-jar-with-dependencies.jar</font></div>
                                                  <div><font
                                                      face="arial,
                                                      sans-serif"><br>
                                                    </font></div>
                                                  <div><font
                                                      face="arial,
                                                      sans-serif">under
                                                       Android
                                                      Dependencies</font><br>
                                                  </div>
                                                  <div><font
                                                      face="arial,
                                                      sans-serif"><br>
                                                    </font></div>
                                                  <div><font
                                                      face="arial,
                                                      sans-serif"><br>
                                                    </font></div>
                                                </div>
                                                <div>When i tried to
                                                  load the pakistan-gh
                                                  file using
                                                  prepareGraph() i got
                                                  error</div>
                                                <div><br>
                                                </div>
                                                <div> An error happend
                                                  while creating
                                                  graph:Cannot load the
                                                  graph - it wasn't
                                                  create via
                                                  com.graphhopper.storage.LevelGraphStorage!
/mnt/sdcard/graphhopper/maps/pakistan-gh/</div>
                                                <div><br>
                                                </div>
                                                <div><br>
                                                </div>
                                                <div> And When i tried
                                                  to load berlin-gh
                                                  files i got</div>
                                                <div><br>
                                                </div>
                                                <div>
                                                  <div> An error happend
                                                    while creating
                                                    graph:Invalid
                                                    storage
                                                    at:/mnt/sdcard/graphhopper/maps/berlin-gh</div>
                                                </div>
                                                <div><br>
                                                </div>
                                                <div>And berlin.map and
                                                  pakistan.map loads
                                                  fine.</div>
                                                <div><br>
                                                </div>
                                                <div>prepareGraph() is
                                                  the same function
                                                  available in demo
                                                  project source code. </div>
                                                <div><br>
                                                </div>
                                                <div><br>
                                                </div>
                                                <div><br>
                                                </div>
                                              </div>
                                              <div class="gmail_extra"><br>
                                                <br>
                                                <div class="gmail_quote">
                                                  <div>
                                                    <div> On Fri, May 3,
                                                      2013 at 11:26 AM,
                                                      Peter K <span
                                                        dir="ltr"><<a
moz-do-not-send="true" href="mailto:peathal@yahoo.de" target="_blank">peathal@yahoo.de</a>></span>
                                                      wrote:<br>
                                                    </div>
                                                  </div>
                                                  <blockquote
                                                    class="gmail_quote"
                                                    style="margin:0 0 0
                                                    .8ex;border-left:1px
                                                    #ccc
                                                    solid;padding-left:1ex">
                                                    <div>
                                                      <div>
                                                        <div
                                                          bgcolor="#FFFFFF"
                                                          text="#000000">
                                                          <div>
                                                          <div><br>
                                                          </div>
                                                          <blockquote
                                                          type="cite">
                                                          <div dir="ltr">Thank
                                                          you for your
                                                          reply. I have
                                                          already tried
                                                          demo app (<a
                                                          moz-do-not-send="true"
href="https://code.google.com/p/graphhopper/downloads/detail?name=GraphHopper-0.1.apk&can=2&q="
style="color:purple;white-space:nowrap;font-family:arial,sans-serif;font-size:13px"
target="_blank">GraphHopper-0.1.apk</a>) with berlin-gh and it works
                                                          fine for me. I
                                                          am using
                                                          eclipse on
                                                          windows 8. I
                                                          want to
                                                          integrate
                                                          graphhopper's
                                                          demo project
                                                          code into my
                                                          own android
                                                          app. My app
                                                          currently
                                                          gives offline
                                                          routing
                                                          according to
                                                          local
                                                          transportation
                                                          (Buses)
                                                          available in
                                                          city. i am
                                                          using
                                                          mapsforge api.
                                                          Now I want to
                                                          integrate
                                                          functionality
                                                          of graphhopper
                                                          demo project
                                                          in to my app
                                                          such that I
                                                          give start and
                                                          end
                                                          coordinates to
                                                          it and it give
                                                          shortest route
                                                          between them. 
                                                          <div> <br>
                                                          </div>
                                                          <div>I have
                                                          created
                                                          pakistan-gh
                                                          files using
                                                          pakistan-latest.osm
                                                          files by using
                                                          run.sh
                                                          command. Then
                                                          i tried to run
                                                          it with <a
                                                          moz-do-not-send="true"
href="https://code.google.com/p/graphhopper/downloads/detail?name=GraphHopper-0.1.apk&can=2&q="
style="color:purple;font-size:13px;white-space:nowrap;font-family:arial,sans-serif"
target="_blank">GraphHopper-0.1.apk</a> but it gives error that "error
                                                          while creating
                                                          graph : could
                                                          not load graph
                                                          at storage
                                                          /path/to/mapfolder".
                                                          But i loads
                                                          pakistan.map
                                                          sucess fully.</div>
                                                          </div>
                                                          </blockquote>
                                                          <br>
                                                          </div>
                                                          The routing
                                                          files are of a
                                                          newer version
                                                          not compatible
                                                          with  <a
                                                          moz-do-not-send="true"
href="https://code.google.com/p/graphhopper/downloads/detail?name=GraphHopper-0.1.apk&can=2&q="
style="color:purple;font-size:13px;white-space:nowrap;font-family:arial,sans-serif"
target="_blank">GraphHopper-0.1.apk</a>
                                                          <div> <br>
                                                          <br>
                                                          <blockquote
                                                          type="cite">
                                                          <div dir="ltr">
                                                          <div>Now i am
                                                          trying to run
                                                          the demo
                                                          project code
                                                          with berlin-gh
                                                          files  on
                                                          eclipse with
                                                          windows 8
                                                          because
                                                          pakistan-gh is
                                                          not working
                                                          properly on
                                                          demo app. 1st
                                                          if code works
                                                          with berlin-gh
                                                          then i will
                                                          switch to my
                                                          own
                                                          pakistan-gh
                                                          files.  And
                                                          the errors i
                                                          got is
                                                          explained in
                                                          previous mails.</div>
                                                          </div>
                                                          </blockquote>
                                                          <br>
                                                          </div>
                                                          You need to
                                                          correct the
                                                          android
                                                          dependencies.
                                                          What do you
                                                          currently have
                                                          loaded in
                                                          Eclipse?
                                                          graphhopper-android,
                                                          mapsforge and
                                                          slf4j-android?<span><font
color="#888888"><br>
                                                          <br>
                                                          Peter.<br>
                                                          </font></span></div>
                                                      </div>
                                                    </div>
                                                  </blockquote>
                                                </div>
                                              </div>
                                            </blockquote>
                                          </div>
                                        </div>
                                      </blockquote>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </blockquote>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>