<p dir="auto">Start to move from $.ajax to fetch with the thing I recently restructured.</p>

<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/5642'>https://github.com/openstreetmap/openstreetmap-website/pull/5642</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5642/commits/b4f0af369d005b15525b775d750cf83838077ffe" class="commit-link">b4f0af3</a>  Get directions using fetch</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5642/files">3 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5642/files#diff-7e2536f2e9b6f209b368993e27a7ecbb60869fc394321af9c2d735c8c02e8fa9">app/assets/javascripts/index/directions/fossgis_osrm.js</a>
    (28)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5642/files#diff-a9cecd581b2c9e4e43ee8e0b73ee178a13779019da8bcb9c13d209843c716711">app/assets/javascripts/index/directions/fossgis_valhalla.js</a>
    (26)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5642/files#diff-ef6651e3e37e12a6ee24e6c9efaa98ddd129a20a5631401cea6e0642fcfffb7a">app/assets/javascripts/index/directions/graphhopper.js</a>
    (20)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5642.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5642.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5642.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5642.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/5642">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLL6DA6F3ZZTQT7ZIFL2PBFRRAVCNFSM6AAAAABWZ2OIO6VHI2DSMVQWIX3LMV43ASLTON2WKOZSHA2DCNJSGY3DCOI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLM6HV66Z7SAQ5VRPMT2PBFRRA5CNFSM6AAAAABWZ2OIO6WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKSXSBLM.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/5642</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/5642",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5642",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>