]> git.openstreetmap.org Git - rails.git/commit
Omit blank zoom from Nominatim reverse search
authorMatt Van Horn <455140+mvanhorn@users.noreply.github.com>
Tue, 13 Oct 2026 10:04:52 +0000 (03:04 -0700)
committerMatt Van Horn <455140+mvanhorn@users.noreply.github.com>
Tue, 13 Oct 2026 10:04:52 +0000 (03:04 -0700)
commit59f485ea1c7400612114ac43730e499cd0fcbb11
tree6bf4cc11d716c8ea279f4569328f6fcaaa911128
parentec8e36b7a04ddb37c158c1a33363d432fabb0e94
Omit blank zoom from Nominatim reverse search

Zoom is added to the reverse parameters only when zoom.present?, which
leaves nil and blank strings off the URL and still sends zoom 0. New
controller tests cover the outbound Nominatim request and the search
page's reverse links for a missing zoom, an empty zoom, and zoom 0.

Fixes #7430
app/controllers/concerns/nominatim_methods.rb
test/controllers/searches/nominatim_reverse_queries_controller_test.rb
test/controllers/searches_controller_test.rb