Cannot load more than one osm files at a time

487 views Asked by At

Hi Can any one please provide me some way to read more than one OSM file at a time ?

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.

Thanks in advance

1

There are 1 answers

3
Karussell On

At the moment you'll have to handle this before import. E.g. via osmosis as pointed out from Rodolphe.