<p>This was originally going to involve getting rid of the to_xml for tracepoints, and move to a builder view for that, but I got bogged down in the gpx file building stuff and had to abandon that.</p>
<p>So this PR is some stand-alone work that was going to be in that PR but may as well be used separately.</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/2999'>https://github.com/openstreetmap/openstreetmap-website/pull/2999</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Remove unused code</li>
  <li>Use point.trace instead of an additional gpx_file variable</li>
  <li>Preload traces for the selected points</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2999/files#diff-19869328a2527e48402e7511953ee1aff338d652f6e8b4c40a8f4c684250ba28">app/controllers/api/tracepoints_controller.rb</a>
    (16)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2999/files#diff-9802ca3c9c4cf89904fd44bc114e35ebdf2c5dd3d5b645491e2b253e1afef29b">app/models/user.rb</a>
    (20)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2999/files#diff-91bef9fda3c55514e23a4a8edba948f68aad59b57951adcff0b11e9ea9159854">test/models/user_test.rb</a>
    (20)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/2999.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/2999.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/2999.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/2999.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2999">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKG3VJ7DKPQXIKXJGTST6CRDANCNFSM4UTSCTQQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLN7RHMKIBDKD4B2WD3ST6CRDA5CNFSM4UTSCTQ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4LKSOHJQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2999",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2999",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>