Hiya, I’ve had a look around to see how to incorporate elevation data into my routing but am still unsure of how to do it.
I’m presuming that I have to apply the Elevation at the moment I create the graph files?
GraphHopper graphHopper = new GraphHopper().setGraphHopperLocation(LocationGrapphopperFiles) .setEncodingManager(new EncodingManager("car")) .setOSMFile(LocationRoutingFile) .setElevationProvider(ElevationProvider.NOOP) .forDesktop(); graphHopper.importOrLoad();
Do I then have to tell it to use elevation data when routing?
GHRequest request = new GHRequest().setWeighting("fastest").setVehicle("car"); GHResponse route = graphHopper.route(request); // Do I have to specify to use elevation data?
At the moment I get the same result no matter what I do.
The other question I have is if I should care where the cache_dir is set? It is only used on initial creation of the graph right?