<blockquote>
<p>So your solution [...] to return a totally invalid response?</p>
</blockquote>
<p>Where exactly did I say that? In this ticket I just stated the problem, not a solution (yet).</p>
<p>In the JOSM ticket I suggested either the one-point-per-segment solution (but I have some concerns that the response would get quite huge) or an own extension that would allow waypoints to be unordered. So we'd still have the waypoint type and could use it inside some type that replaces "trackSegment" - therefore perfectly valid and unordered.</p>
<p>Something like this (with an appropriate XSD file linked)</p>
<div class="highlight highlight-text-xml"><pre><<span class="pl-ent">gpx</span>>
<span class="pl-c"><span class="pl-c"><!--</span> metadatastuff <span class="pl-c">--></span></span>
<<span class="pl-ent">trk</span>>
<<span class="pl-ent">trkseg</span>>
<span class="pl-c"><span class="pl-c"><!--</span> all the trackable traces / waypoints as is <span class="pl-c">--></span></span>
</<span class="pl-ent">trkseg</span>>
</<span class="pl-ent">trk</span>>
<<span class="pl-ent">extensions</span>>
<<span class="pl-ent">osm</span><span class="pl-ent">:</span><span class="pl-ent">points</span> <span class="pl-e">unordered</span>=<span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span>>
<span class="pl-c"><span class="pl-c"><!--</span> all non-trackable waypoints <span class="pl-c">--></span></span>
</<span class="pl-ent">osm</span><span class="pl-ent">:</span><span class="pl-ent">points</span>>
</<span class="pl-ent">gpx</span>></pre></div>
<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/issues/2208#issuecomment-482972558">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLdF9SjHbGW4J99INPFPX6R_yD9Cfks5vgyiXgaJpZM4cumDx">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABWnLeyK4YlbJjRKmbFIQoXAq_6UkMDLks5vgyiXgaJpZM4cumDx.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"PERSON","message":"@bjoeni in #2208: \u003e So your solution [...] to return a totally invalid response?\r\n\r\nWhere exactly did I say that? In this ticket I just stated the problem, not a solution (yet).\r\n\r\n\r\nIn the JOSM ticket I suggested either the one-point-per-segment solution (but I have some concerns that the response would get quite huge) or an own extension that would allow waypoints to be unordered. So we'd still have the waypoint type and could use it inside some type that replaces \"trackSegment\" - therefore perfectly valid and unordered.\r\n\r\nSomething like this (with an appropriate XSD file linked)\r\n``` xml\r\n\u003cgpx\u003e\r\n \u003c!-- metadatastuff --\u003e\r\n \u003ctrk\u003e\r\n \u003ctrkseg\u003e\r\n \u003c!-- all the trackable traces / waypoints as is --\u003e\r\n \u003c/trkseg\u003e\r\n \u003c/trk\u003e\r\n \u003cextensions\u003e\r\n \u003cosm:points unordered=\"true\"\u003e\r\n \u003c!-- all non-trackable waypoints --\u003e\r\n \u003c/osm:points\u003e\r\n\u003c/gpx\u003e\r\n```"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/openstreetmap-website/issues/2208#issuecomment-482972558"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/2208#issuecomment-482972558",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2208#issuecomment-482972558",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>