[openstreetmap/openstreetmap-website] Implement JSON support for the changeset download API (PR #5973)

Kyℓe Hensel notifications at github.com
Thu May 1 11:43:20 UTC 2025


k-yle left a comment (openstreetmap/openstreetmap-website#5973)

> Now for the upload, you might have multiple create/modify/delete blocks in random order, including repeating blocks for the same action. How would this work with your proposed format?

If I understand you correctly, you're referring to the case where someone uploads an XML file like this:

```xml
<osmChange>
  <create> <node id="1" … />  </create>
  <update> <node id="2" … />  </update>
  <create> <way id="3" … />  </create> <!-- create again -->
  <create> <node id="4" … />  </create> <!-- and again -->
</osmChange>
``` 

Is there a reason why uploaders can't just store 3 arrays (`create`, `update`, `delete`) and append each element to the correct array before uploading it?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5973#issuecomment-2844691797
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5973/c2844691797 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250501/de9f0dcc/attachment-0001.htm>


More information about the rails-dev mailing list