mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-22 12:06:27 +03:00
for postcodes use rank_search as base rank for finding addresses
The rank_address reflects the position in the address which is usually lower than what one would expect for a postcode area.
This commit is contained in:
parent
247065ff6f
commit
62b7670e0c
@ -1265,6 +1265,8 @@ BEGIN
|
||||
END IF;
|
||||
ELSEIF NEW.rank_address > 25 THEN
|
||||
max_rank := 25;
|
||||
ELSEIF NEW.class in ('place','boundary') and NEW.type in ('postcode','postal_code') THEN
|
||||
max_rank := NEW.rank_search;
|
||||
ELSE
|
||||
max_rank := NEW.rank_address;
|
||||
END IF;
|
||||
|
Loading…
Reference in New Issue
Block a user