SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] use address.city if possible
Thomas Pointhuberbc12a76fbbfd
diff --git a/searx/engines/openstreetmap.py b/searx/engines/openstreetmap.pyindex e5deba1e5..db0fbfe75 100644--- a/searx/engines/openstreetmap.py+++ b/searx/engines/openstreetmap.py@@ -64,7 +64,9 @@ def response(resp):if address.get('name'):address.update({'house_number':address_raw.get('house_number'),'road':address_raw.get('road'),- 'locality':address_raw.get('town', address_raw.get('village')),+ 'locality':address_raw.get('city',+ address_raw.get('town',+ address_raw.get('village'))),'postcode':address_raw.get('postcode'),'country':address_raw.get('country'),'country_code':address_raw.get('country_code')})