Merge pull request #3350 from lonvia/improve-postcode-handling

Improve handling of postcode areas
This commit is contained in:
Sarah Hoffmann
2024-02-28 18:45:31 +01:00
committed by GitHub
2 changed files with 19 additions and 12 deletions

View File

@@ -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;