<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      maybe because of the 4 virtual edges which are created per query
      point?<br>
      E.g. if there is an edge with ID=X then when you use a start or
      end point directly on this edge there will be new virtual edges
      which are not X<br>
      <br>
      Depending on the usecase you'll have to tweak the QueryGraph or
      the Weighting or something else.<br>
      <br>
      Regards,<br>
      Peter<br>
      <br>
      On 12.11.2014 16:35, Moises Arcos wrote:<br>
    </div>
    <blockquote
cite="mid:CAGfwTczezg1eP1S7SjnNWVx5B5PpY4BNsVOKVpWsqTrq9g-=jQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi all,
        <div><br>
        </div>
        <div>I've been trying to get an edge id using the findClosest
          method, but I don't know what edge id returns.</div>
        <div>I need to avoid an edge list, but when I try to calculate
          the weigth of an edge, never is equals than the
          EdgeIteratorState.</div>
        <div><br>
        </div>
        <div>Anybody knows why?</div>
        <div><br>
        </div>
        <div>Regards!!!</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2014-11-05 16:18 GMT+01:00 Moises Arcos
          <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:moiarcsan@gmail.com" target="_blank">moiarcsan@gmail.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Thank you for your answer.
              <div><br>
              </div>
              <div>I followed your instructions and I used
                the initCHPrepare method to update the edges list.</div>
              <div><br>
              </div>
              <div>But I have another trouble: When the list is updated,
                there isn't any edge that is inside my list.</div>
              <div>I mean that in the method calcWeight [1] not found
                any edge that is the same than another. This condition
                is always false.</div>
              <div><br>
              </div>
              <div>¿How do I know if I'm selecting the right edge? I
                used the location index [2]</div>
              <div><br>
              </div>
              <div>Regards!!!</div>
              <div><br>
              </div>
              <div>[1] <a moz-do-not-send="true"
href="https://github.com/moiarcsan/smartcity-traffic-jam/blob/master/smc-tj-engine/src/main/java/com/graphhopper/BlockingWeighting.java#L35"
                  target="_blank">https://github.com/moiarcsan/smartcity-traffic-jam/blob/master/smc-tj-engine/src/main/java/com/graphhopper/BlockingWeighting.java#L35</a></div>
              <div>[2] <a moz-do-not-send="true"
href="https://github.com/graphhopper/graphhopper/blob/master/docs/core/location-index.md"
                  target="_blank">https://github.com/graphhopper/graphhopper/blob/master/docs/core/location-index.md</a>
                <div>
                  <div class="h5"><br>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">2014-11-05 13:52
                        GMT+01:00 Moises Arcos <span dir="ltr"><<a
                            moz-do-not-send="true"
                            href="mailto:moiarcsan@gmail.com"
                            target="_blank">moiarcsan@gmail.com</a>></span>:<br>
                        <blockquote class="gmail_quote"
                          style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                          <div dir="ltr">Hi, 
                            <div><br>
                            </div>
                            <div>I'm trying to do that you told me, but
                              I don't know how I have to call the
                              preparation method.</div>
                            <div><br>
                            </div>
                            <div>Where could I find it?</div>
                            <div><br>
                            </div>
                            <div>Thanks
                              <div>
                                <div><br>
                                  <div><br>
                                    <div class="gmail_extra"><br>
                                      <div class="gmail_quote">2014-11-05
                                        13:04 GMT+01:00 Peter <span
                                          dir="ltr"><<a
                                            moz-do-not-send="true"
                                            href="mailto:graphhopper@gmx.de"
                                            target="_blank">graphhopper@gmx.de</a>></span>:<br>
                                        <blockquote class="gmail_quote"
                                          style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                                          <div bgcolor="#FFFFFF"
                                            text="#000000">
                                            <div>Hi,<br>
                                              <br>
                                              as you have CH enabled you
                                              will need to call the
                                              preparation everytime the
                                              road issues change. <br>
                                              <br>
                                              Or just disable CH before
                                              the import to make traffic
                                              jam integration easy and
                                              possible 'on-the-fly'.
                                              (graphHopper.setCHEnable(false)
                                              or graphHopper.disableCH
                                              in previous versions)<br>
                                              <br>
                                              Regards,<br>
                                              Peter.
                                              <div>
                                                <div><br>
                                                  <br>
                                                  On 05.11.2014 12:43,
                                                  Moises Arcos wrote:<br>
                                                </div>
                                              </div>
                                            </div>
                                            <blockquote type="cite">
                                              <div>
                                                <div>
                                                  <div dir="ltr"><span
                                                      style="font-family:arial,sans-serif;font-size:13px">Hi
                                                      all,</span>
                                                    <div
                                                      style="font-family:arial,sans-serif;font-size:13px"><br>
                                                    </div>
                                                    <div
                                                      style="font-family:arial,sans-serif;font-size:13px">I'm

                                                      trying investigate
                                                      if it's possible
                                                      implement a
                                                      routing method
                                                      that it's able to
                                                      recalculate the
                                                      route when there
                                                      is an issue in a
                                                      street near to
                                                      fastest route.</div>
                                                    <div
                                                      style="font-family:arial,sans-serif;font-size:13px"><br>
                                                    </div>
                                                    <div
                                                      style="font-family:arial,sans-serif;font-size:13px">For

                                                      example I want to
                                                      go from an A point
                                                      to B point but one
                                                      of the street that
                                                      I get with
                                                      graphhopper
                                                      routing engine has
                                                      a traffic jam, so
                                                      I would like to
                                                      calculate with
                                                      graphhopper an
                                                      alternative route,
                                                      but I don't know
                                                      how I can do it.</div>
                                                    <div
                                                      style="font-family:arial,sans-serif;font-size:13px"><br>
                                                    </div>
                                                    <div
                                                      style="font-family:arial,sans-serif;font-size:13px">I've

                                                      been trying to do
                                                      the next thing:</div>
                                                    <div
                                                      style="font-family:arial,sans-serif;font-size:13px"><br>
                                                    </div>
                                                    <div
                                                      style="font-family:arial,sans-serif;font-size:13px">I've

                                                      implemented a
                                                      Weighting class
                                                      with a callWeigth
                                                      method [1], and a
                                                      class that extends
                                                      GraphHopper [2]
                                                      and when I'm going
                                                      to use it [3] it's
                                                      not working
                                                      correctly.</div>
                                                    <div
                                                      style="font-family:arial,sans-serif;font-size:13px"><br>
                                                    </div>
                                                    <div
                                                      style="font-family:arial,sans-serif;font-size:13px">I
                                                      don't know what Im
                                                      doing wrong
                                                      because I followed
                                                      the weighting
                                                      guidelines. I have
                                                      only a reason that
                                                      explains this
                                                      problem.</div>
                                                    <div
                                                      style="font-family:arial,sans-serif;font-size:13px"><br>
                                                    </div>
                                                    <div
                                                      style="font-family:arial,sans-serif;font-size:13px">Could

                                                      the graph's edges
                                                      updated when the
                                                      graph has been
                                                      already made?</div>
                                                    <div
                                                      style="font-family:arial,sans-serif;font-size:13px"><br>
                                                    </div>
                                                    <div
                                                      style="font-family:arial,sans-serif;font-size:13px">I
                                                      need some help.</div>
                                                    <div
                                                      style="font-family:arial,sans-serif;font-size:13px"><br>
                                                    </div>
                                                    <div
                                                      style="font-family:arial,sans-serif;font-size:13px">Thanks</div>
                                                    <div
                                                      style="font-family:arial,sans-serif;font-size:13px"><br>
                                                    </div>
                                                    <div
                                                      style="font-family:arial,sans-serif;font-size:13px">Regards!!!</div>
                                                    <div
                                                      style="font-family:arial,sans-serif;font-size:13px"><br>
                                                    </div>
                                                    <div
                                                      style="font-family:arial,sans-serif;font-size:13px">[1] <a
moz-do-not-send="true"
href="https://github.com/moiarcsan/smartcity-traffic-jam/blob/master/smc-tj-engine/src/main/java/com/graphhopper/BlockingWeighting.java"
                                                        target="_blank">https://github.com/moiarcsan/smartcity-traffic-jam/blob/master/smc-tj-engine/src/main/java/com/graphhopper/BlockingWeighting.java</a></div>
                                                    <div
                                                      style="font-family:arial,sans-serif;font-size:13px">[2] <a
moz-do-not-send="true"
href="https://github.com/moiarcsan/smartcity-traffic-jam/blob/master/smc-tj-engine/src/main/java/com/graphhopper/TrafficJamGraph.java"
                                                        target="_blank">https://github.com/moiarcsan/smartcity-traffic-jam/blob/master/smc-tj-engine/src/main/java/com/graphhopper/TrafficJamGraph.java</a></div>
                                                    <div
                                                      style="font-family:arial,sans-serif;font-size:13px">[3] <a
moz-do-not-send="true"
href="https://github.com/moiarcsan/smartcity-traffic-jam/blob/master/smc-tj-engine/src/main/java/com/emergya/smc/tj/TrafficJamHandler.java"
                                                        target="_blank">https://github.com/moiarcsan/smartcity-traffic-jam/blob/master/smc-tj-engine/src/main/java/com/emergya/smc/tj/TrafficJamHandler.java</a></div>
                                                  </div>
                                                  <br>
                                                </div>
                                              </div>
                                            </blockquote>
                                          </div>
                                        </blockquote>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </blockquote>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>