<div dir="ltr">I'll look into that, thank you! <div><br></div><div>What about extracting routing data for a specific city? </div><div>I've tried using bbike <a href="http://download.bbbike.org/osm/">http://download.bbbike.org/osm/</a> , extracted this:  <a href="http://download.bbbike.org/osm/extract/planet_25.1591,54.6528_25.3957,54.752.osm.pbf" target="_blank" style="font-size:13px;font-family:arial,sans-serif">http://download.bbbike.org/osm/extract/planet_25.1591,54.6528_25.3957,54.752.osm.pbf</a> (Vilnius city, Lithuania) and executed ./graphopper.sh import vilnius-city-latest.osm.pmf</div>

<div><br></div><div>Then I've downloaded Lithuania map from here <a href="http://download.mapsforge.org/maps/europe/">http://download.mapsforge.org/maps/europe/</a> , created folder vilnius-city-latest-gh and pasted it into Android file system. </div>

<div><br></div><div>When I run app it displays a map but when I try calculate distance between two points (with your methods) app crashes. </div><div><br></div><div>Then i've tested it with australia map and it's routing data and it works. So I'm guessing I have some problems with routing data that I've got from bbbike and I've no idea how else to extract correct routing data. </div>

<div><br></div><div>  </div></div><div class="gmail_extra"><br clear="all"><div><div>----------------------</div><div><br></div><div>Ignas Kapočius</div><div><br></div></div>
<br><br><div class="gmail_quote">2013/12/17 Peter K <span dir="ltr"><<a href="mailto:peathal@yahoo.de" target="_blank">peathal@yahoo.de</a>></span><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 Ignas,<br>
      <br>
      have a look into the android/ folder. There you see how it work.
      And you can set the algorithm in the GHRequest object. If
      contraction hierarchy is enabled only bidirectional algorithms
      will work. The GHResponse contains all the necessary information
      like points and instructions.<br>
      <br>
      <div><div class="im">> Should I first make some kind of subgraph (due to
        efficiency)?<br>
        <br></div>
        There are several techniques to make it faster like CH, but you
        could also use more heuristical routing algorithms, sorting the
        graph, in-memory instead memory mapped etc<br>
      </div>
      <br>
      Regards,<br>
      Peter.<br>
      <br>
    </div>
    <blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Hello, 
        <div><br>
        </div>
        <div>I've got Graphhopper going on my Android device. </div>
        <div><br>
        </div>
        <div>Now my goal is to select two points on the map, apply one
          of the algorithms (Dijksta, A*, etc) and display results with
          an overlay. </div>
        <div><br>
        </div>
        <div>Due to lack of documentation & being a little bit in a
          hurry, could somebody point me where/how to start? </div>
        <div><br>
        </div>
        <div>I understand the basics - getting point's coordinates,
          displaying an overlay with results. The part where I'm
          confused is how to apply search algorithms in Graphhopper? </div>
        <div><br>
        </div>
        <div>Should I first make some kind of subgraph (due to
          efficiency)? </div>
        <div>How can I get all the points (on streets, i.e.) between
          those two points?</div>
        <div>Is there something like getStreet(point1, point2) that
          gives you back most likely street between your two points? </div>
        <div><br>
        </div>
        <div>Pardon my naivety, but I'm new to mapping, routing, etc
          & my BA thesis' handing in deadline is coming really fast.
          ;) any help appreciated!<br clear="all">
          <div>
            <div>----------------------</div>
            <div><br>
            </div>
            <div>Ignas Kapočius</div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><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>

<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></div>