[openstreetmap/openstreetmap-website] Remove "whereami" search parameter, use "lat" and "lon" instead (PR #4959)

Anton Khorev notifications at github.com
Sat Jul 6 14:03:18 UTC 2024


`whereami` was introduced in #1968. It's only used to suppress another parameter `latlon_digits` which indicates that we're not sure if the query string is "lat,lon" or "lon,lat". `whereami=1` says that we know it's "lat,lon". But why don't we use `lat` and `lon` parameters directly?
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/4959

-- Commit Summary --

  * Remove "whereami" search parameter, use "lat" and "lon" instead

-- File Changes --

    M app/assets/javascripts/index/contextmenu.js (2)
    M app/assets/javascripts/index/search.js (9)
    M app/controllers/geocoder_controller.rb (2)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/4959.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4959.diff

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

Message ID: <openstreetmap/openstreetmap-website/pull/4959 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240706/9249bc18/attachment.htm>


More information about the rails-dev mailing list