I’m trying to understand why GraphHopper can’t find a connection between the two locations (48.688537, 6.163409) and (48.691697, 6.170115) in the Lorraine region of France.
This is a snippet of my code :
GraphHopper hopper = new GraphHopper().forDesktop();
hopper.setInMemory();
hopper.setOSMFile(“lorraine-latest.osm.pbf”);
hopper.setGraphHopperLocation(“lorraine-latest”);
GHResponse rsp = hopper.route(new GHRequest(48.688537, 6.163409, 48.691697, 6.170115));
And I get the following error :
[java.lang.RuntimeException: Connection between locations not found]
However, there is clearly a connection even on the official graphhopper maps :
https://graphhopper.com/maps/?point=48.688537%2C6.163409&point=48.691697%2C6.170115&locale=en-US&vehicle=car&weighting=fastest&elevation=true&layer=Omniscale
I’ll be grateful for any help in understanding this.