[openstreetmap/openstreetmap-website] changesets API call with time range does not work as expected (#1204)

Tobias Zwick notifications at github.com
Sat Apr 16 15:30:27 UTC 2016


Again, I am not sure if this is a bug but I do not see a meaningful usecase for the current implementation of the following:

For the API call `changesets?time=date1,date2`, the parameters have the following meaning:
**`date1`**: closed after
**`date2`**: created before

So this reads as _"Find all changesets that have been created before X but closed after Y"_.
As someone already noticed in the [API 0.6 wiki documentation](http://wiki.openstreetmap.org/wiki/API_v0.6#Query:_GET_.2Fapi.2F0.6.2Fchangesets), this does not really make sense and certainly is not what one would expect.

What one would expect is that this selects a time range, i.e. _"Find all changesets that have been created after X and closed before Y"_ - 
**`date1`**: created after
**`date2`**: closed before

What makes sense and what does not make sense aside, this should only be changed if the current behavior is deemed to be a bug since the API should stay consistent in its behavior.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1204
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20160416/75a4cb99/attachment.html>


More information about the rails-dev mailing list