]> git.openstreetmap.org Git - rails.git/commit
Return a JSON error when reverse geocoding fails for a JSON request
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 23 Sep 2026 15:19:55 +0000 (16:19 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 23 Sep 2026 16:03:19 +0000 (17:03 +0100)
commit504e7e0c81ca2feca6d155d5cce6bdb2f5083255
tree8b2aa7224784abb82c7df4071456cd3fd146a099
parentacfba199615f0f70de8432dc293e74ab5e00d1fb
Return a JSON error when reverse geocoding fails for a JSON request

There is no JSON error template, so a nominatim error resulted in a
missing template exception. Return the error as JSON instead, and
ignore error responses when setting the home location name so that
the existing name is kept.
app/assets/javascripts/home_location_name-endpoint.js
app/controllers/searches/nominatim_reverse_queries_controller.rb
test/controllers/searches/nominatim_reverse_queries_controller_test.rb