forked from hans/Nominatim
ignore postcodes with colons
Colons are used as a delimiter in tiger:left and tiger:right tags when multiple postcodes are given. Ignore those. This was already done in the postcode update script. This changes just makes the two places consistent where postcodes are added.
This commit is contained in:
@@ -643,7 +643,7 @@ BEGIN
|
||||
addr_street := NEW.address->'street';
|
||||
addr_place := NEW.address->'place';
|
||||
|
||||
IF NEW.address ? 'postcode' and NEW.address->'postcode' not similar to '%(,|;)%' THEN
|
||||
IF NEW.address ? 'postcode' and NEW.address->'postcode' not similar to '%(:|,|;)%' THEN
|
||||
i := getorcreate_postcode_id(NEW.address->'postcode');
|
||||
END IF;
|
||||
END IF;
|
||||
|
||||
Reference in New Issue
Block a user