[GraphHopper] Drawing map and route

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


 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130703/b57372d1/attachment.html>


More information about the GraphHopper mailing list