<p dir="auto">Previously I moved endpoints code out of <code class="notranslate">directions.js</code>, but there's still too much code.</p>
<p dir="auto">This PR creates a module for valid route output which includes:</p>
<ul dir="auto">
<li>total time/distance</li>
<li>directions table</li>
<li>download link</li>
<li>link to the routing engine</li>
<li>route geometry drawn on the map with hovers/popups</li>
</ul>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5913'>https://github.com/openstreetmap/openstreetmap-website/pull/5913</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5913/commits/8cf9c691f28ab0319c8eb6585b3ed6974d1fb8e1" class="commit-link">8cf9c69</a> Use for loop to write directions table</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5913/commits/0dac0b423225d1894c2358f09da4852c6882dab2" class="commit-link">0dac0b4</a> Move directions output to its own module</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5913/commits/5ecfafbda9cf0a975c74dd4709286ff291e873f2" class="commit-link">5ecfafb</a> Replace deprecated hover listener by mouseenter/leave</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5913/commits/f374efd709045879a890563b77327bf6b026d86e" class="commit-link">f374efd</a> Rename directions close button listener</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5913/files">2 files</a>)</p>
<ul>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5913/files#diff-dcfa4dd190717d6b20a8788e23c5119e3a3a95dc6ff8d7b776137d919e1e60c1">app/assets/javascripts/index/directions-output.js</a>
(140)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5913/files#diff-fdb9558c2ba79ddf9fbcb92594a8a8fa54abb1b3e25ce264de37951b428a958b">app/assets/javascripts/index/directions.js</a>
(140)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5913.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5913.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5913.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5913.diff</a></li>
</ul>
<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/pull/5913">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPXZXUIHHAJNNLKY2T2YU6NPAVCNFSM6AAAAAB2ZLKXUGVHI2DSMVQWIX3LMV43ASLTON2WKOZSHE4DGMRTGAYTCOI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLIJY2A7APZT4L5RM2D2YU6NPA5CNFSM6AAAAAB2ZLKXUGWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLDUD2U4.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/pull/5913</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/pull/5913",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5913",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>