I am using GraphHopper Core on a desktop doing offline routing for car. After testing more than 9000 trips I tried, 7 of them show up with “Connection between locations not found” error message. However, those trips have no problem getting driving route on GraphHopper Map.
I found this old article on the forum 0.5.0: Connection between locations not found, which suggested playing with the settings “prepare.minOnewayNetworkSize=200” or decrease “prepare.minNetworkSize”, but that did not work for me.
One example is from (30.263,-97.794) to (30.265,-97.736):
I believe it is something about the origin (30.263,-97.794), since I have another trip with the same origin showing the same error message. Any suggestion?
Ps. Here is some key lines from my code:
String drivingWeight = “fastest”; //shortest, fastest, short_fastest
// Create Gaphhopper instance
hopper = new GraphHopperOSM().forDesktop();
GHRequest request = new GHRequest(origLat, origLng, destLat, destLng);
GHResponse route = hopper.route(request);