[openstreetmap/openstreetmap-website] Support unwrapped bbox values in changeset history queries (PR #5473)

Anton Khorev notifications at github.com
Tue Apr 8 08:37:12 UTC 2025


@AntonKhorev commented on this pull request.



>      end
   end
 
+  def wrap_lon(lon)
+    ((lon + 180) % 360) - 180

Added tests for -270 to 270 and -180 to 180.

Also added `:bbox` argument to changesets factory to shorten `create(:changeset, ...)` in tests.

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

Message ID: <openstreetmap/openstreetmap-website/pull/5473/review/2749151583 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250408/6c4367f2/attachment.htm>


More information about the rails-dev mailing list