<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class="">
Hi!<div class="">I have encountered a problem in finding routes between a few number of addresses. Most work well, but it seems like some addresses on one way streets and in areas with restricted access it fails to find a route. I have implemented a quick-fix for this by adjusting the coordinates in a outgoing  spiral until a route is found. But this is not a good solution in densely populated areas, so,  is there any better solution?</div><div class=""><br class=""></div><div class="">Hopefully, I’m simply doing something wrong by getting this problem, as I do not get the same problem on the test-server:</div><div class=""><a href="https://graphhopper.com/maps/?point=10 Lilla Nygatan, 11129, Stockholm, Sweden&point=10A Arsenalsgatan, 103 27, Stockholm, Sweden&layer=Lyrk" class="">https://graphhopper.com/maps/?point=10%20Lilla%20Nygatan%2C%2011129%2C%20Stockholm%2C%20Sweden&point=10A%20Arsenalsgatan%2C%20103%2027%2C%20Stockholm%2C%20Sweden&layer=Lyrk</a></div><div class=""><br class=""></div><div class="">In essence my setup looks like this:</div><div class=""><br class=""></div><div class="">Init:</div><div class=""><br class=""></div><div class=""><div class="">        hopper = new CustomGraphHopper(settings);</div><div class="">        hopper.setPreciseIndexResolution(1000);</div><div class="">        hopper.forDesktop();</div><div class="">        hopper.setInMemory(true);</div><div class="">        hopper.setOSMFile(osmPath);</div><div class="">        hopper.setGraphHopperLocation("GraphData");</div><div class="">        hopper.setEncodingManager(new EncodingManager("car"));</div><div class="">        hopper.importOrLoad();</div></div><div class=""><br class=""></div><div class="">Req: </div><div class=""><br class=""></div><div class=""><div class="">        GHRequest req = new GHRequest(graph.getNode(from).address.getLatitude(), graph.getNode(from).address.getLongitude(), graph.getNode(to).address.getLatitude(), graph.getNode(to).address.getLongitude())</div><div class="">            .setWeighting("custom")</div><div class="">            .setLocale("SE").setLocale("sv_SE")</div><div class="">            .setVehicle("car").setAlgorithm("dijkstrabi");</div><div class="">        GHResponse rsp = hopper.route(req);</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thanks in advance, </div><div class=""><br class=""></div><div class="">David</div></body></html>