<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 Achim,<br>
      <br>
      currently only unpaved or paved (unpavedBit) and road, pushing
      section, cycleway or other small way is stored (wayTypeEncoder) is
      stored for later access (see BikeCommonFlagEncoder) but you should
      be able to extend the bike encoders to your needs and store any
      kind of information e.g. introduce a new 'EncodedValue
      surfaceEncoder'<br>
      <br>
      To get that data you can override the GraphHopper.getPaths method
      where you get raw access to the edges via Paths.calcEdges. Then
      with the encoder do <br>
      <pre>encoder.isBool(edge.getFlags(), BikeCommonFlagEncoder.UNPAVED) </pre>
      or<br>
      <pre>encoder.getLong(edge.getFlags(), YourClass.SURFACE_CODE) // returns a long which you can convert to the strings</pre>
      <br>
      or like it is done for wayTypeEncoder:<br>
      <pre>encoder.getAnnotation(edge.getFlags(), tanslation )</pre>
      <br>
      Regards,<br>
      Peter.<br>
      <br>
      On 10.11.2014 20:57, Achim Augenstein wrote:<br>
    </div>
    <blockquote cite="mid:5461189B.8090900@augiweb.de" type="cite">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div id="message1349" class="message-text adbayes-content"> Hi <br>
        <br>
        i use the cycle routing of Graphhopper. How can i get the
        Ā length AND the surface of a routing section from the standalone
        API (getter function?)? <br>
        <br>
        Thanks <br>
        Achim </div>
      <div class="div143010" style="width:336px; float:left; clear:none;
        display:block !important;"> </div>
      <div class="div82390" style="width:336px; float:left; clear:none;
        display:block !important;"> </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>