<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=""><div class="">Looks good, but having played around with the settings I still do not get them to work. My current config looks as follows:</div><div class=""><div class=""><br class=""></div><div class="">prepare.chWeighting=fastest</div><div class="">prepare.minOnewayNetworkSize = 1</div><div class="">prepare.minNetworkSize = 1</div><div class="">graph.flagEncoders=car</div><div class="">index.highResolution=10000</div><div class="">index.maxRegionSearch=10000</div><div class="">routing.defaultAlgorithm=dijkstrabi</div></div><div class=""><br class=""></div><div class="">I believe I’m doing something wrong as the demo-api manages all the routes. </div><div class=""><br class=""></div><div class="">I’’m thankful for all suggestions! </div><div class=""><br class=""></div><div class="">//</div><div class=""><br class=""></div><div class="">David</div><br class=""><div><blockquote type="cite" class=""><div class="">16 dec 2014 kl. 15:08 skrev Peter <<a href="mailto:graphhopper@gmx.de" class="">graphhopper@gmx.de</a>>:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    <div class="moz-cite-prefix">See if this answer helps:<br class="">
      <a class="moz-txt-link-freetext" href="http://stackoverflow.com/a/26433076/194609">http://stackoverflow.com/a/26433076/194609</a><br class="">
      <br class="">
      Peter<br class="">
      <br class="">
      On 16.12.2014 15:03, David Ödling wrote:<br class="">
    </div>
    <blockquote cite="mid:CA466382-82CF-4D07-A786-16ACC4B09B42@me.com" type="cite" class="">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" 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 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 class="">
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br class="">
      <pre wrap="" class="">_______________________________________________
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 class="">
  </div>

_______________________________________________<br class="">GraphHopper mailing list<br class=""><a href="mailto:GraphHopper@openstreetmap.org" class="">GraphHopper@openstreetmap.org</a><br class="">https://lists.openstreetmap.org/listinfo/graphhopper<br class=""></div></blockquote></div><br class=""></body></html>