<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">On 19.05.2014 14:43, Philipp Kraus
      wrote:<br>
    </div>
    <blockquote
      cite="mid:0651A12C-5F10-44A0-A400-3546A509F692@tu-clausthal.de"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <br>
      <div>
        <div>Am 19.05.2014 um 14:12 schrieb Peter K <<a
            moz-do-not-send="true" href="mailto:peathal@yahoo.de">peathal@yahoo.de</a>>:</div>
        <br class="Apple-interchange-newline">
        <blockquote type="cite">yes, sure. You can collect this while
          import e.g. via your own<br>
          CarFlagEncoder and store the maxspeed via an additional
          EncodedValue<br>
          (like we already do for the speed itself), and then add a
          separate<br>
          getMaxSpeed method to the encoder to read this information.<br>
        </blockquote>
      </div>
      <br>
      <div>I have take a look into <a moz-do-not-send="true"
href="https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/CarFlagEncoder.java">https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/routing/util/CarFlagEncoder.java</a></div>
      <div>IMHO it seems to be correct, if I
        run this.getGraph().getEncodingManager().getEncoder("CAR").getSpeed
        I should get the correct speed limit on a road, shouldn't I?</div>
    </blockquote>
    <br>
    Not really. As I said, we store also guessed speed data which is not
    always the maxspeed<br>
    <br>
    <blockquote
      cite="mid:0651A12C-5F10-44A0-A400-3546A509F692@tu-clausthal.de"
      type="cite">
      <div>The encoder reads the limit from the data and if it not set
        it sets the default value. Did I understand it correct, that
        GraphHopper reads the data and use it? </div>
    </blockquote>
    <br>
    Yes, if that is what you need, then encoder.getSpeed is the method
    you can use.<br>
    <br>
    <blockquote
      cite="mid:0651A12C-5F10-44A0-A400-3546A509F692@tu-clausthal.de"
      type="cite">
      <div>I'm a little bit confused, I need not to implement the
        encoder myself.</div>
    </blockquote>
    <br>
    No, add a new variable like so:<br>
    protected EncodedDoubleValue maxSpeedEncoder;<br>
    <br>
    and use it similar to speedEncoder.<br>
    <br>
    Regards,<br>
    Peter.<br>
  </body>
</html>