<p></p>
<h3 dir="auto">Problem</h3>
<p dir="auto">Currently, there is no way to request the history of multiple objects in a single request.</p>
<h3 dir="auto">Description</h3>
<p dir="auto">Let's say you want to get the full history of changes to the line geometry. To do this, you need to get the history of the line + the history of all points that have ever entered the line. There seem to be only two ways to do this right now:</p>
<ol dir="auto">
<li>Call in the worst case 2000 /history for nodes (in one of the line versions)</li>
<li>Make a Multi fetch of the current state of points, and then generate queries like: <em>nodes?nodes=1v1,1v2,...2v1,....</em></li>
</ol>
<p dir="auto">In theory, if the nodes versions are small (1-5), then loading with Multi fetch (<a href="https://wiki.openstreetmap.org/wiki/API_v0.6#Multi_fetch:_GET_/api/0.6/%5Bnodes%7Cways%7Crelations%5D?#parameters" rel="nofollow">~600 versions</a> at a time), the second method will only need 4-17 requests</p>
<p dir="auto">In practice, most likely you will not be able to get a boost due to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2419039899" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5005" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/5005/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/5005">#5005</a></p>
<hr>
<p dir="auto">But why all these difficulties? Why not have multi fetch for /history?</p>
<p dir="auto">Something like: /nodes_histories?nodes=1,2,3</p>
<p dir="auto">p.s. judging <a href="https://github.com/openstreetmap/openstreetmap-website/issues/5005#issuecomment-2239423787" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/5005/hovercard">by</a>, most likely, this method would also be useful for undo edits tools</p>
<h3 dir="auto">Screenshots</h3>
<p dir="auto"><em>No response</em></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/5008">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMAATCT3GYBD44EDXTZNGLBTAVCNFSM6AAAAABLFLJM3WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQZDAMJZGUZDCNA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLPIEP7L3PWQ3TG3WXTZNGLBTA5CNFSM6AAAAABLFLJM3WWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJAQJ7RY.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/5008</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/5008",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/5008",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>