<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">See if this answer helps:<br>
      <a class="moz-txt-link-freetext" href="http://stackoverflow.com/a/26433076/194609">http://stackoverflow.com/a/26433076/194609</a><br>
      <br>
      Peter<br>
      <br>
      On 16.12.2014 15:03, David Ödling wrote:<br>
    </div>
    <blockquote cite="mid:CA466382-82CF-4D07-A786-16ACC4B09B42@me.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <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 moz-do-not-send="true"
href="https://graphhopper.com/maps/?point=10%20Lilla%20Nygatan,%2011129,%20Stockholm,%20Sweden&point=10A%20Arsenalsgatan,%20103%2027,%20Stockholm,%20Sweden&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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
GraphHopper mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>