mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
tweak postcode search
Give a preference to left-right reading, i.e <postcode>,<address> prefers a postcode search while <address>,<postcode> rather does an address search. Also exclude non-addressables, countries and state from results when a postcode is contained in the query.
This commit is contained in:
@@ -178,7 +178,7 @@ class HTMLLogger(BaseLogger):
|
||||
self._write(f"rank={res.rank_address}, ")
|
||||
self._write(f"osm={format_osm(res.osm_object)}, ")
|
||||
self._write(f'cc={res.country_code}, ')
|
||||
self._write(f'importance={res.importance or -1:.5f})</dd>')
|
||||
self._write(f'importance={res.importance or float("nan"):.5f})</dd>')
|
||||
total += 1
|
||||
self._write(f'</dl><b>TOTAL:</b> {total}</p>')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user