[GraphHopper] Drawing map and route

Дмитрий Пучков d-puchkov at mail.ru
Wed Jul 3 09:35:09 UTC 2013


 Thank you very much for answers!
now i use JXMapViewer + GraphHopper.


Среда,  3 июля 2013, 9:30 +02:00 от Peter K <peathal at yahoo.de>:
>Also there is ongoing development at
      mapsforge where the rewrite branch supports offline maps on the
      desktop via AWT/Swing.
>
>If you need a solution now there was already desktop support for
      mapsforge but they dropped it:
>http://sourceforge.net/apps/mediawiki/osm4j/index.php?title=Searcher
>
>Regards,
>Peter.
>
>>Hi
            Dmitriy
>> 
>>GraphHopper only meant to compute routes
            between two points, displaying it on a map is a hole other
            story.
>>However, GraphHopper come with a nice web
            application that can create and display routes on a map.
            This is the graphhopper-web module.
>>Here is how to use it https://github.com/graphhopper/graphhopper/tree/master/web
>> 
>>For desktop application you have to create your
            own and the hardest part will probably be to display a map
            background.
>>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.
>> 
>>Regards,
>> 
>>Nicolas
              GILLET
>> 
>> 
>>Market-IP
                – Creating
                Mobile Intelligence
>>Phone : +32 81 33 11 11
>>Fax : +32 81 33 11 10
>>www.market-ip.com – www.telefleet.com –  www.geoplanning.net –  www.drivexpert.net
>> 
>>De : Дмитрий Пучков [ mailto:d-puchkov at mail.ru ]
>>Envoyé : mercredi 3 juillet 2013 08:09
>>À : GraphHopper at openstreetmap.org
>>Objet : [GraphHopper] Drawing map and route
>> 
>>Hello!
>>Tell me please, how to start desktop application with a rendered map ?
>>
>>I work at eclipse, and i have four projects imports from  https://github.com/graphhopper/graphhopper :
>>1)graphhopper
>>2)graphhopper-parrent
>>3)graphhopper-tools
>>4)graphhopper-web
>>
>>In my class I do next :
>>
>> GraphHopper gh;
>> private static final String ghLoc =
          "/home/dmitriy/graphhopper/core/target";
>> private static final String testOsm =
          "/home/dmitriy/graphhopper/russia-european-part-latest.osm.pbf";
>> gh = new GraphHopper().setInMemory(true,
          false).setEncodingManager(
>>                new
          EncodingManager("CAR")).setCHShortcuts(true,
          true).setGraphHopperLocation(
>>                ghLoc).setOSMFile(testOsm);
>>        gh.importOrLoad();
>>        GHResponse ph = gh.route(new GHRequest(51.2492152,
          9.4317166, 51.2, 9.4).setAlgorithm("dijkstrabi"));
>>
>>It works fine , but I  can not
              understand how to run a graphical map and draw a route on it.
>>Would you please explain to me? 
>>I will be very grateful!
>>-- 
>>Dmitriy Puchkov
>>
>>_______________________________________________
GraphHopper mailing list
>>GraphHopper at openstreetmap.org
>>http://lists.openstreetmap.org/listinfo/graphhopper
>
>_______________________________________________
>GraphHopper mailing list
>GraphHopper at openstreetmap.org
>http://lists.openstreetmap.org/listinfo/graphhopper
>


-- 
Дмитрий Пучков
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130703/c6a62087/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Untitled.png
Type: image/png
Size: 1263 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130703/c6a62087/attachment.png>


More information about the GraphHopper mailing list