<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Dmitrie,<br>
      <br>
      you could calculate the distance to every (close) edge of the
      path.<br>
      <br>
      See the code I'm using in Location2NodesNtree.checkAdjacent ->
      DistanceCalc.calcNormalizedEdgeDistance<br>
      <br>
      Before you can use this method you have to check if you should use
      the distance to the end points of the edge or if you should use
      the perpendicular edge distance. This is done via
      DistanceCalc.validEdgeDistance<br>
      <br>
      Kind Regards,<br>
      Peter.<br>
      <br>
      <br>
    </div>
    <blockquote cite="mid:1379500884.327663893@f220.i.mail.ru"
      type="cite">
      <span id="result_box" class="" lang="en"><span class="hps">Hello!<br>
          I have been</span> <span class="hps">writing the</span> <span
          class="hps">logic</span> <span class="hps">of doing</span> <span
          class="hps">the route</span><span>.</span> <span class="hps">For
          example, if</span> <span class="hps">we</span> <span
          class="hps">left the</span> <span class="hps">route, you need</span>
        <span class="hps">to give</span> <span class="hps">a voice
          message.</span><br>
        <span class="hps">Do you have any</span> <span class="hps">idea</span>
        <span class="hps">how to check</span> <span class="hps">how far
          off the</span> <span class="hps">paved route</span> <span
          class="hps">the current position</span> <span class="hps">(gps)</span></span>?<br>
      <br>
      Thank you!<br>
      -- <br>
      Дмитрий Пучков<br>
      <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>