[openstreetmap/openstreetmap-website] changesets API call with time range does not work as expected (#1204)
notifications at github.com
Sat Apr 16 17:41:08 UTC 2016
I had to read your explanation a few times to grasp the logic/use case you present, I find it very hard to understand.
So, the use case _"get all changesets that were open at some time between 1:30 PM and 3:30PM"_ translates to
_"created before 3:30PM but closed after 1:30PM"_ (-> `changesets?time=1:30PM,3:30PM`)
So the difference between the current implementation and the one that I expected is that the current implementation is "greedy", returning any changesets whose time being open merely overlap with the specified time range while the one I expected would only return changesets whose time being open were fully within the specified time range.
Okay, I get it. I think then we can establish that this is not a bug and indeed the current implementation returns a meaningful result - simply the documentation needs to be updated to explain it better.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rails-dev