<div dir="ltr">Hi!<div>There are some errors in the code on this page:</div><div><a href="https://github.com/graphhopper/graphhopper/blob/master/docs/core/routing.md">https://github.com/graphhopper/graphhopper/blob/master/docs/core/routing.md</a><br></div><div>With it first part, named "To do routing in your Java code you'll need just a few lines of code"</div><div><br></div><div>There are:</div><div><br></div><div><pre style="color:rgb(0,0,0);font-family:'Courier New'">hopper.setInMemory(<span style="color:rgb(0,0,128);font-weight:bold">true</span>); - this method doesn't have parameters;</pre><pre><pre style="color:rgb(0,0,0);font-family:'Courier New'"><span style="color:rgb(0,0,128);font-weight:bold">if</span>(!rsp.isFound()) { - rsp has no method called isFound();</pre><pre style="color:rgb(0,0,0);font-family:'Courier New'">rsp.getTime(); - rsp has no method called getTime();</pre><pre style="color:rgb(0,0,0);font-family:'Courier New'">trMap.getWithFallBack(Locale.<span style="color:rgb(102,14,122);font-weight:bold;font-style:italic">US</span>); - variable trMap isn't declared. What class it should be?</pre><pre style="color:rgb(0,0,0);font-family:'Courier New'">List<String> iList = il.createDescription(tr); - ilhas no method called createDescription(tr);<br></pre><pre style="color:rgb(0,0,0);font-family:'Courier New'"><br></pre><pre><font face="arial, sans-serif"><span style="white-space:normal">I've created new maven project, create there class Main with public static void main, for tests. Next, I added dependency </span></font><font color="#000000" face="Courier New"><br></font></pre><pre><pre style="color:rgb(0,0,0);font-family:'Courier New'"><span style="background-color:rgb(239,239,239)"><</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(228,228,255)">dependency</span><span style="background-color:rgb(239,239,239)">></span><br>    <span style="background-color:rgb(239,239,239)"><</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">groupId</span><span style="background-color:rgb(239,239,239)">></span>com.graphhopper<span style="background-color:rgb(239,239,239)"></</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">groupId</span><span style="background-color:rgb(239,239,239)">></span><br>    <span style="background-color:rgb(239,239,239)"><</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">artifactId</span><span style="background-color:rgb(239,239,239)">></span>graphhopper<span style="background-color:rgb(239,239,239)"></</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">artifactId</span><span style="background-color:rgb(239,239,239)">></span><br>    <span style="background-color:rgb(239,239,239)"><</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">version</span><span style="background-color:rgb(239,239,239)">></span>0.4.1<span style="background-color:rgb(239,239,239)"></</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(239,239,239)">version</span><span style="background-color:rgb(239,239,239)">></span><br><span style="background-color:rgb(239,239,239)"></</span><span style="color:rgb(0,0,128);font-weight:bold;background-color:rgb(228,228,255)">dependency</span><span style="background-color:rgb(239,239,239)">></span></pre><pre><pre>to my project. Then, I paste code, and got errors, which I<font face="arial, sans-serif"><font face="Courier New"><span style="white-space:normal"> </span></font><span style="white-space:normal">describe</span><font face="Courier New"><span style="white-space:normal"> earlier.</span></font></font></pre>Where is my error?</pre></pre></pre></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 24, 2015 at 12:08 PM, Alexander Tkachov <span dir="ltr"><<a href="mailto:gwalk17@gmail.com" target="_blank">gwalk17@gmail.com</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">OK, I will analyze it. Thanks a lot one more time.</div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Wed, Jun 24, 2015 at 12:06 PM, Peter <span dir="ltr"><<a href="mailto:graphhopper@gmx.de" target="_blank">graphhopper@gmx.de</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hi Alexander,<br>
      <br>
      GraphHopper is an open source project where everything happens on
      your machine and a country-sized graph should fit into 1-2GB RAM.
      The GraphHopper Directions API is a durable, hosted GraphHopper
      (and other features) with multiple profiles for world wide
      coverage etc<br>
      <br>
      Regards,<br>
      Peter<span><br>
      <br>
      On 24.06.2015 12:01, Alexander Tkachov wrote:<br>
    </span></div><span>
    <blockquote type="cite">
      <div dir="ltr">And what is the size of such graph?
        <div>I mean, if there opportunity to download some peace of the
          graph? It will improve processing time (because the graph will
          be in memory) and reduce your server workload.</div>
        <div><br>
        </div>
        <div>Thanks a lot for the information.</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Jun 24, 2015 at 11:44 AM, Peter
          <span dir="ltr"><<a href="mailto:graphhopper@gmx.de" target="_blank">graphhopper@gmx.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 Alexander,<br>
                <br>
                first, you should get yourself familiar on e.g. how a <a href="https://github.com/graphhopper/graphhopper/blob/master/docs/core/routing.md" target="_blank">simple route</a> can be calculated
                with the default algorithms from GraphHopper.<br>
                <br>
                Then for your new algorithm you can use the <a href="https://github.com/graphhopper/graphhopper/blob/master/docs/core/low-level-api.md" target="_blank">low level API</a> where you have
                direct access to the Graph object:<br>
                Graph graph = graphHopper.getGraph();<br>
                <br>
                Read a bit about tower vs. pillar nodes, and try to
                traverse the graph its 'junctions' and implement the
                algorithm for it. As an example you can have a look into
                <a href="https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/Dijkstra.java" target="_blank">Dijkstra.java</a>.<br>
                <br>
                Also read about custom <a href="https://github.com/graphhopper/graphhopper/blob/master/docs/core/weighting.md" target="_blank">weighting</a> and <a href="https://github.com/graphhopper/graphhopper/blob/master/docs/core/create-new-flagencoder.md" target="_blank">flag encoders</a>.<br>
                <br>
                Kind Regards,<br>
                Peter
                <div>
                  <div><br>
                    <br>
                    On 24.06.2015 11:31, Alexander Tkachov wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div>
                    <div dir="ltr">Hi.
                      <div>I have a problem. I want to implement my own
                        search algorithm (the shortest path between two
                        points on map for cars). For these purposes I
                        need some kind of graph (or something else). If
                        there opportunity to get crossroads graph? I
                        mean, I need something, which contains
                        crossroads where each crossroads contains
                        coordinates, the list of nearest crossroads and
                        distances (m or km) to these nearest crossroads.
                        If there will be any other parameters (like
                        speed limits etc) it will be great.</div>
                      <div>How can I get such kind of data if on the
                        beginning I have only coordinates of start and
                        end points.</div>
                      <div><br>
                      </div>
                      <div>Thanks.</div>
                    </div>
                    <br>
                  </div>
                </div>
              </blockquote>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </span></div>

<br></span><span class="">_______________________________________________<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" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br></div>