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

Peter K peathal at yahoo.de
Wed Dec 11 12:40:37 UTC 2013


Thanks Rodolphe, that is probably closer to what Pavan wanted :) !

Regards,
Peter.

> 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
>




More information about the GraphHopper mailing list