<div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/1231218?s=20&v=4" /><strong>1ec5</strong> left a comment <a href="https://github.com/openstreetmap/openstreetmap-website/issues/6387#issuecomment-3672039463">(openstreetmap/openstreetmap-website#6387)</a></div>
<blockquote>
<p dir="auto">the <a href="https://github.com/perliedman/leaflet-routing-machine/">Leaflet Routing Machine</a> plugin we’re using</p>
</blockquote>
<p dir="auto">My bad, we aren’t use the Leaflet Routing Machine: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="169747806" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/1262" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/1262/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/1262">#1262</a>. Instead we have <a href="https://github.com/openstreetmap/openstreetmap-website/blob/db8748265138f6a1375ff565b71589e8497b50c6/app/assets/javascripts/index/directions.js#L6">our own homegrown abstraction</a> with <a href="https://github.com/openstreetmap/openstreetmap-website/tree/db8748265138f6a1375ff565b71589e8497b50c6/app/assets/javascripts/index/directions">adapters</a> for GraphHopper, OSRM, and Valhalla. Each adapter currently hard-codes a link to the routing provider as attribution:</p>
<p dir="auto"><a href="https://github.com/openstreetmap/openstreetmap-website/blob/db8748265138f6a1375ff565b71589e8497b50c6/app/assets/javascripts/index/directions-route-output.js#L138-L140">https://github.com/openstreetmap/openstreetmap-website/blob/db8748265138f6a1375ff565b71589e8497b50c6/app/assets/javascripts/index/directions-route-output.js#L138-L140</a> <a href="https://github.com/openstreetmap/openstreetmap-website/blob/db8748265138f6a1375ff565b71589e8497b50c6/app/assets/javascripts/index/directions/graphhopper.js#L40">https://github.com/openstreetmap/openstreetmap-website/blob/db8748265138f6a1375ff565b71589e8497b50c6/app/assets/javascripts/index/directions/graphhopper.js#L40</a> <a href="https://github.com/openstreetmap/openstreetmap-website/blob/db8748265138f6a1375ff565b71589e8497b50c6/app/assets/javascripts/index/directions/fossgis_valhalla.js#L61">https://github.com/openstreetmap/openstreetmap-website/blob/db8748265138f6a1375ff565b71589e8497b50c6/app/assets/javascripts/index/directions/fossgis_valhalla.js#L61</a> <a href="https://github.com/openstreetmap/openstreetmap-website/blob/db8748265138f6a1375ff565b71589e8497b50c6/app/assets/javascripts/index/directions/fossgis_osrm.js#L155">https://github.com/openstreetmap/openstreetmap-website/blob/db8748265138f6a1375ff565b71589e8497b50c6/app/assets/javascripts/index/directions/fossgis_osrm.js#L155</a></p>
<p dir="auto">We could supplement that link with a link to the full demo site. The code above already has access to all the parameters that we’d want to pass into the demo site.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/6387#issuecomment-3672039463">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLDBAYY4HMPNGENC7T4CMCVZAVCNFSM6AAAAACF6FG752VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMNZSGAZTSNBWGM">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOXDRZF4RO5YZEOIZL4CMCVZA5CNFSM6AAAAACF6FG752WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTW233QCO.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/6387/3672039463</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/6387#issuecomment-3672039463",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/6387#issuecomment-3672039463",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>