[openstreetmap/openstreetmap-website] Send the user's preferred languages to Nominatim (PR #6421)

Tom Hughes notifications at github.com
Sun Sep 28 11:08:53 UTC 2025


This sends the user's preferred languages to Nominatim instead of sending the browser languages - it will still fallback to the browser languages that were being sent before if we have no other source for preferred languages.

I also did (in a separate commit) some refactoring to improve how we build the URL for nominatim.

Fixes #6420.

You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Lock changesets during a diff upload
  * Refactor construction of Nominatim URLs
  * Send the user's preferred languages to Nominatim

-- File Changes --

    M app/controllers/api/changesets/uploads_controller.rb (8)
    M app/controllers/concerns/nominatim_methods.rb (33)
    M test/controllers/api/changesets/uploads_controller_test.rb (29)

-- Patch Links --

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

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

Message ID: <openstreetmap/openstreetmap-website/pull/6421 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250928/152d4b5d/attachment.htm>


More information about the rails-dev mailing list