<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">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">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">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">Dijkstra.java</a>.<br>
<br>
Also read about custom <a
href="https://github.com/graphhopper/graphhopper/blob/master/docs/core/weighting.md">weighting</a>
and <a
href="https://github.com/graphhopper/graphhopper/blob/master/docs/core/create-new-flagencoder.md">flag
encoders</a>.<br>
<br>
Kind Regards,<br>
Peter<br>
<br>
On 24.06.2015 11:31, Alexander Tkachov wrote:<br>
</div>
<blockquote
cite="mid:CAGGswp_qAzxrZ1EuNDS4UV7ZXT=7ROFt+j4bOUrggLJzckYtdA@mail.gmail.com"
type="cite">
<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>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
GraphHopper mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
</blockquote>
<br>
</body>
</html>