- radius := near_feature_rank_distance(rank_search);
- --DEBUG: RAISE WARNING 'adding % diameter %', place_id, diameter;
-
- -- Create a bounding box with an extent computed from the radius (in meters).
- secgeo := ST_Envelope(ST_Collect(
- ST_Project(geometry, radius, 0.785398)::geometry,
- ST_Project(geometry, radius, 3.9269908)::geometry));
- PERFORM insertLocationAreaLarge(partition, place_id, country_code, keywords, rank_search, rank_address, true, postcode, geometry, secgeo);
+ secgeo := place_node_fuzzy_area(geometry, rank_search);
+ PERFORM insertLocationAreaLarge(partition, place_id, country_code, keywords, rank_search, rank_address, true, postcode, centroid, secgeo);