- NEW.parent_place_id = get_interpolation_parent(NEW.address->'street',
- NEW.address->'place',
- NEW.partition, place_centroid, NEW.linegeo);
-
- IF NEW.address is not NULL AND NEW.address ? 'postcode' AND NEW.address->'postcode' not similar to '%(,|;)%' THEN
- interpol_postcode := NEW.address->'postcode';
- ELSE
- interpol_postcode := NULL;
- END IF;
+ NEW.parent_place_id = get_interpolation_parent(NEW.token_info, NEW.partition,
+ place_centroid, NEW.linegeo);
+
+ interpol_postcode := token_normalized_postcode(NEW.address->'postcode');