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?
This setting was the one I tried by adding hopper.setMinNetworkSize(200, 200) (I believe this is doing the same thing as you suggested?), but the problem remains.
The parameters remove too small “islands” so that the routing engine snaps to other roads that are properly connected to each other. The difference between the two parameters is that min_network_size sets the value for “obvious” islands and min_one_way_network_size sets the value for islands that are still reachable but only in one direction. Does this help?