[openstreetmap-website] Support version for /nodes, /ways, /relations API calls (#1067)

Simon Legner notifications at github.com
Tue Oct 6 17:57:07 UTC 2015


When reverting a changeset (e.g., using the JOSM plugin `reverter`), one needs to obtain a large number of objects in a specific version. At the moment, those are obtained sequentially one by one:

```
GET https://api.openstreetmap.org/api/0.6/node/618158454/6
GET https://api.openstreetmap.org/api/0.6/node/223240985/18
GET https://api.openstreetmap.org/api/0.6/node/1341712258/2
GET https://api.openstreetmap.org/api/0.6/node/674055923/7
GET https://api.openstreetmap.org/api/0.6/node/31446843/26
```

To improve performance, it would be great to obtain them in a single call:

```
GET https://api.openstreetmap.org/api/0.6/nodes?nodes=618158454/6,223240985/18,1341712258/2,674055923/7,31446843/26
```

Would it be acceptable to enhance `node_controller#nodes` with this feature? Depending on whether the version is present or not, either a `Node` or an `OldNode` would be fetched.

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1067
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20151006/4c0f0a67/attachment.html>


More information about the rails-dev mailing list