[GraphHopper] Fwd: Need help on loading more than one OSM file to route over using Graph Hopper

Rodolphe Quiédeville rodolphe at quiedeville.org
Wed Dec 11 12:38:00 UTC 2013


pavan534 rocking <pavan534.rock at gmail.com> writes:

> Hi,
>
>  I am new to  Open Street Maps  as well as Graph Hopper. Can any one
> provide me some sample snippet or directions to load more than one OSM
> files at a time to route over.
>
>   Actually I tried with this to read an osm file using Graph Hopper
> application API.
>
> GraphHopperAPI instance = new GraphHopper().setInMemory(true, true)
> .setEncodingManager(em).setGraphHopperLocation(location)
> .setOSMFile("output.osm").disableCHShortcuts(); GraphHopper hopper =
> (GraphHopper) instance; hopper.importOrLoad();
>
> Is there a way on it to load more than one OSM files which will be helpful
> for me.

Hi,

You can easily do this with osmosis, just merge your files before to use
them, some explications here :

http://www.kindle-maps.com/blog/simple-merging-of-openstreetmap-data-files.html

Regards

-- 
Rodolphe Quiédeville
Expert Tsung - Consulting en performance des SI
http://blog.rodolphe.quiedeville.org, Tel : 06 13 79 63 41
Travaillons libres, http://fr.lolix.org/



More information about the GraphHopper mailing list