<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Actually, as I get way informations
      from another database, I've already set the way osm IDs as name
      (local name = way:id() in function WayHandlers.names), so that
      should already do the trick, but apparently not.</div>
    <div class="moz-cite-prefix">I've also tried to set weight_precision
      = 0.1 to avoid rounding to 0, but no result.<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Regards,</div>
    <div class="moz-cite-prefix">Yves<br>
    </div>
    <div class="moz-cite-prefix">On 14.12.21 21:37, Daniel Patterson
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CANvddSKbN9YNDo+t6cSNPmHpAzb189FggAq7tHnxLrLn1oU5wQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>OSRM isn't designed to provide perfect information along
          the route like that - but it can be hacked to get close.  When
          I built out the elevation profile feature for <a
            href="http://skitrails.com" moz-do-not-send="true">skitrails.com</a>,
          I used a combination of a DEM in postgis along with the OSRM
          route geometry to make the elevation profile, so not directly
          in OSRM itself.</div>
        <div><br>
        </div>
        <div>For highlighting tagged difficulty sections, what you could
          try us using `piste:difficulty` as part of the `name`
          attribute in OSRM - it _should_ emit a new step for each new
          name along the path, so if difficulty changes, you'd get a new
          step at that point.</div>
        <div><br>
        </div>
        <div>You would need to remove the appended `piste:difficulty`
          tag from any name you wanted to display on screen later on
          though.</div>
        <div><br>
        </div>
        <div>daniel<br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Tue, Dec 14, 2021 at 10:40
          AM Yves <<a href="mailto:ycai@mailbox.org"
            moz-do-not-send="true">ycai@mailbox.org</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div>Yes, exactly, I'm playing with OSRM to eventually replace
            the routing backend at <a href="http://opensnowmap.org"
              target="_blank" moz-do-not-send="true">opensnowmap.org</a><br>
            This feature provides the user a topo highlighting the
            various difficulties along the route.<br>
            Yves - Opensnowmap <br>
            <br>
            <div class="gmail_quote">Le 14 décembre 2021 19:13:55
              GMT+01:00, Daniel Patterson <<a
                href="mailto:daniel@mapbox.com" target="_blank"
                moz-do-not-send="true">daniel@mapbox.com</a>> a
              écrit :
              <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt
                0.8ex;border-left:1px solid
                rgb(204,204,204);padding-left:1ex">
                <div dir="ltr">
                  <div>Yves,</div>
                  <div><br>
                  </div>
                  <div>  I would say that OSRM's step-by-step
                    instructions are definitely not optimized for nordic
                    ski trails.  The route _geometry_ will be correct,
                    but the steps are primarily designed to look at road
                    class (highway=) and names - none of the piste: tags
                    are considered when generating steps.</div>
                  <div><br>
                  </div>
                  <div>  What does the optimal output look like in your
                    opinion?  As a long-time nordic ski racer myself, if
                    I even bothered to use navigation, I'd mostly only
                    be interested in locations where there were
                    intersections.  Are you looking to analyze the
                    various difficulty ratings along the selected route?</div>
                  <div><br>
                  </div>
                  <div>daniel<br>
                  </div>
                </div>
                <br>
                <div class="gmail_quote">
                  <div dir="ltr" class="gmail_attr">On Tue, Dec 14, 2021
                    at 10:04 AM Yves via OSRM-talk <<a
                      href="mailto:osrm-talk@openstreetmap.org"
                      target="_blank" moz-do-not-send="true">osrm-talk@openstreetmap.org</a>>
                    wrote:<br>
                  </div>
                  <blockquote class="gmail_quote" style="margin:0px 0px
                    0px 0.8ex;border-left:1px solid
                    rgb(204,204,204);padding-left:1ex">
                    <div>Hello, <br>
                      Playing around with OSRM, I figured that smaller
                      ways seems to be coalesced with others to form a
                      single 'step' in the output.<br>
                      I can't find any parameter in the Lua config to
                      change this behaviour (yet).<br>
                      Any hint is appreciated.<br>
                      The use case is a short nordic skiing way with a
                      different piste:difficulty along a much longer
                      route.<br>
                      <a
                        href="http://www.openstreetmap.org/way/103175249"
                        target="_blank" moz-do-not-send="true">www.openstreetmap.org/way/103175249</a><br>
                      Regards,<br>
                      Yves </div>
                    _______________________________________________<br>
                    OSRM-talk mailing list<br>
                    <a href="mailto:OSRM-talk@openstreetmap.org"
                      target="_blank" moz-do-not-send="true">OSRM-talk@openstreetmap.org</a><br>
                    <a
                      href="https://lists.openstreetmap.org/listinfo/osrm-talk"
                      rel="noreferrer" target="_blank"
                      moz-do-not-send="true">https://lists.openstreetmap.org/listinfo/osrm-talk</a><br>
                  </blockquote>
                </div>
              </blockquote>
            </div>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>