I have set up a local server of GraphHopper for Navigation/Routing on a virtual machine running Ubuntu 15.10 as the Guest OS.
To initialise the server, one needs to specify the following command (in a terminal): java -jar graphhopper-web-0.5.0-with-dep.jar jetty.resourcebase=webapp config=config-example.properties osmreader.osm={osmFileName}.osm.pbf
, which I will refer to as the GHServerCommand from here on.
My Question: Can I load multiple OSM files to this server?
I have attempted this in two ways both of which were unsucessful:
Attempt 1:
- running the GHServerCommand with the first file... until the Server starts running (terminal output:
Server started on port 8989
- running the above command with the second osm file in a new terminal, while the server is already running with the first OSM data set.
Attempt 2:
- running the GHServerCommand with both files, specifying them in a comma separated format, i.e. :
java -jar graphhopper-web-0.5.0-with-dep.jar jetty.resourcebase=webapp config=config-example.properties osmreader.osm={osmFileName1}.osm.pbf,{osmFileName2}.osm.pbf
Seeing that both attempts were unsucessful, I am unsure whether this will work at all. Is there a way to load multiple osm.pbf files to a self-hosted GraphHopper server?