<HTML><BODY>Thank you very much for answers!<br>now i use JXMapViewer + GraphHopper.<br><br><br>Среда, 3 июля 2013, 9:30 +02:00 от Peter K <peathal@yahoo.de>:<br>
<blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;" class="mailru-blockquote">
<div id="">
<div>Also there is ongoing development at
mapsforge where the rewrite branch supports offline maps on the
desktop via AWT/Swing.<br>
<br>
If you need a solution now there was already desktop support for
mapsforge but they dropped it:<br>
<a href="http://sourceforge.net/apps/mediawiki/osm4j/index.php?title=Searcher" target="_blank">http://sourceforge.net/apps/mediawiki/osm4j/index.php?title=Searcher</a><br>
<br>
Regards,<br>
Peter.<br>
<br>
</div>
<blockquote cite="mid:3dbfb3dd7fb14a70a81d2dbedcecf5c9@AMXPR05MB056.eurprd05.prod.outlook.com" type="cite">
<div>
<p><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D">Hi
Dmitriy</span></p>
<p><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D"> </span></p>
<p><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D" lang="EN-US">GraphHopper only meant to compute routes
between two points, displaying it on a map is a hole other
story.</span></p>
<p><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D" lang="EN-US">However, GraphHopper come with a nice web
application that can create and display routes on a map.
This is the graphhopper-web module.</span></p>
<p><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D" lang="EN-US">Here is how to use it
<a moz-do-not-send="true" href="https://github.com/graphhopper/graphhopper/tree/master/web" target="_blank">https://github.com/graphhopper/graphhopper/tree/master/web</a></span></p>
<p><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D" lang="EN-US"> </span></p>
<p><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D" lang="EN-US">For desktop application you have to create your
own and the hardest part will probably be to display a map
background.</span></p>
<p><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D" lang="EN-US">This can be done by either getting this map
from internet through a API’s like OSM, MapQuest, Google and
some other or creating your own map from data with a map
rendering tool like Mapnik, the latest requiring more
effort.</span></p>
<p><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D" lang="EN-US"> </span></p>
<p><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D" lang="EN-US">Regards,</span></p>
<p><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D" lang="EN-US"> </span></p>
<div>
<p><span style="font-size:10.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D">Nicolas
GILLET</span></p>
<p><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D"> </span></p>
<p><b><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D"> </span></b></p>
<p><b><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D">Market-IP
–</span></b><i><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D"></span></i><i><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#404040">Creating
Mobile Intelligence</span></i><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D"></span></p>
<p><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D">Phone :
<span class="js-phone-number">+32 81 33 11 11</span>
</span></p>
<p><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D">Fax :
<span class="js-phone-number">+32 81 33 11 10</span></span></p>
<p><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D"><a moz-do-not-send="true" href="http://www.market-ip.com/" target="_blank">www.market-ip.com</a>
–
<a moz-do-not-send="true" href="http://www.telefleet.com/" target="_blank">www.telefleet.com</a>
– <a moz-do-not-send="true" href="http://www.geoplanning.net/" target="_blank">
www.geoplanning.net</a> – <a moz-do-not-send="true" href="http://www.drivexpert.net/" target="_blank">www.drivexpert.net</a>
</span></p>
<p><a moz-do-not-send="true" href="http://www.linkedin.com/groups/MarketIP-4289716?gid=4289716&trk=hb_side_g" target="_blank"><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D;text-decoration:none"><img id="Image_x0020_1" src="cid:part6.08040204.02000201@yahoo.de" alt="Description : cid:image003.png@01CD5521.849F3340" border="0" height="25" width="30"></span></a><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D"></span></p>
</div>
<p><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D"> </span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p><b><span style="font-size:10.0pt;font-family:"" lang="FR">De :</span></b><span style="font-size:10.0pt;font-family:"" lang="FR"> Дмитрий Пучков [<a href="sentmsg?mailto=mailto%3ad%2dpuchkov@mail.ru" target="_blank">mailto:d-puchkov@mail.ru</a>]
<br>
<b>Envoyé :</b> mercredi 3 juillet 2013 08:09<br>
<b>À :</b> <a href="sentmsg?mailto=mailto%3aGraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a><br>
<b>Objet :</b> [GraphHopper] Drawing map and route</span></p>
</div>
</div>
<p> </p>
<p>Hello!<br>
Tell me please, how to start desktop application with<span> </span>
<span><span lang="EN">a rendered</span></span><span><span lang="EN">
</span></span><span><span lang="EN">map</span></span>?<br>
<br>
I work at eclipse, and i have four projects imports from <a moz-do-not-send="true" href="https://github.com/graphhopper/graphhopper" target="_blank">
https://github.com/graphhopper/graphhopper</a>:<br>
1)graphhopper<br>
2)graphhopper-parrent<br>
3)graphhopper-tools<br>
4)graphhopper-web<br>
<br>
In my class I do next :<br>
<br>
GraphHopper gh;<br>
private static final String ghLoc =
"/home/dmitriy/graphhopper/core/target";<br>
private static final String testOsm =
"/home/dmitriy/graphhopper/russia-european-part-latest.osm.pbf";<br>
gh = new GraphHopper().setInMemory(true,
false).setEncodingManager(<br>
new
EncodingManager("CAR")).setCHShortcuts(true,
true).setGraphHopperLocation(<br>
ghLoc).setOSMFile(testOsm);<br>
gh.importOrLoad();<br>
GHResponse ph = gh.route(new GHRequest(51.2492152,
9.4317166, 51.2, 9.4).setAlgorithm("dijkstrabi"));<br>
<br>
<span><span lang="EN">It</span></span><span lang="EN"> <span>
works fine</span>, but I <span>can not
understand</span> <span>
how</span> <span>to run</span> <span>a graphical</span> <span>
map and</span> <span>draw a</span> <span>route</span> <span>
on it.</span><br>
<span>Would you please explain to me? </span><br>
<span>I will be very grateful!</span><br>
</span>-- <br>
Dmitriy Puchkov</p>
</div>
<br>
<fieldset></fieldset>
<br>
<pre wrap="">_______________________________________________
GraphHopper mailing list
<a href="sentmsg?mailto=mailto%3aGraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a>
<a href="http://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">http://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
</blockquote>
<br>
_______________________________________________<br>
GraphHopper mailing list<br>
<a href="sentmsg?compose&To=GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">http://lists.openstreetmap.org/listinfo/graphhopper</a><br>
<br>
</div>
</blockquote>
<br>
<br>-- <br>Дмитрий Пучков<br></BODY></HTML>