forked from hans/Nominatim
Ignore postcodes with comma and semicolon when computing address
OSM has sometimes postcode lists for cities which should simply be ignored. Fixes #673.
This commit is contained in:
@@ -2420,7 +2420,7 @@ BEGIN
|
||||
IF searchpostcode IS NOT NULL and location.type = 'postcode' THEN
|
||||
location.isaddress := FALSE;
|
||||
END IF;
|
||||
IF searchpostcode IS NULL and location.isaddress and location.type != 'postcode' and location.postcode IS NOT NULL THEN
|
||||
IF searchpostcode IS NULL and location.isaddress and location.type != 'postcode' and location.postcode IS NOT NULL and location.postcode not similar to '%(,|;)%' THEN
|
||||
searchpostcode := location.postcode;
|
||||
END IF;
|
||||
IF location.rank_address = 4 AND location.isaddress THEN
|
||||
|
||||
Reference in New Issue
Block a user