Hello, Community!
Last week I implemented history call to retrieve all old versions of an element, version call to retrieve a specific version of the element and added possibility to specify version number for element in multi fetch call, i.e.:
-
GET /api/0.6/[node way relation]/#id/history -
GET /api/0.6/[node way relation]/#id/#version -
GET /api/0.6/[nodes ways relations]?#parameters (added optional version number)
Request examples:
- https://www.openstreetmap.org/node/21265449 history
- https://www.openstreetmap.org/way/4823378 history
- https://www.openstreetmap.org/relation/123924 history
- node https://wiki.openstreetmap.org/wiki/Tag:id=21265449 https://wiki.openstreetmap.org/wiki/Tag:version=4
- way https://wiki.openstreetmap.org/wiki/Tag:id=4823378 https://wiki.openstreetmap.org/wiki/Tag:version=30
- relation https://wiki.openstreetmap.org/wiki/Tag:id=123924 https://wiki.openstreetmap.org/wiki/Tag:version=217
- nodes 26047550 version 28, 26047555 version 22
- ways 4903994, 4904157 version 7, 4904160 version 3
- relations 1148410 version 51, 1155947 version 6, 1155950
Unfortunately, current and history tables contains the same data, so currently it’s not possible to get all element’s history or some old version of element.
Next week I will implement relations for element and ways for node calls. So I will finish all read-only elements calls.