mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-09 11:34:07 +00: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:
@@ -1265,6 +1265,8 @@ BEGIN
|
|||||||
END IF;
|
END IF;
|
||||||
ELSEIF NEW.rank_address > 25 THEN
|
ELSEIF NEW.rank_address > 25 THEN
|
||||||
max_rank := 25;
|
max_rank := 25;
|
||||||
|
ELSEIF NEW.class in ('place','boundary') and NEW.type in ('postcode','postal_code') THEN
|
||||||
|
max_rank := NEW.rank_search;
|
||||||
ELSE
|
ELSE
|
||||||
max_rank := NEW.rank_address;
|
max_rank := NEW.rank_address;
|
||||||
END IF;
|
END IF;
|
||||||
|
|||||||
Reference in New Issue
Block a user