From: Sarah Hoffmann Date: Tue, 1 Sep 2020 16:00:40 +0000 (+0200) Subject: tweak size of large POIs X-Git-Tag: v3.6.0~82^2~1 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/07430b01940e1bdbb04ebf74e2f273ac3c4f8c28?ds=inline;hp=--cc tweak size of large POIs Further reduce the size from which on POIs are no longer bound to streets but only to larger objects. The point of reference, of what a largest POI could be that is still bound is JFK airport. --- 07430b01940e1bdbb04ebf74e2f273ac3c4f8c28 diff --git a/sql/functions/placex_triggers.sql b/sql/functions/placex_triggers.sql index dc96efd4..3ddb97c0 100644 --- a/sql/functions/placex_triggers.sql +++ b/sql/functions/placex_triggers.sql @@ -92,7 +92,7 @@ BEGIN END IF; IF fallback THEN - IF ST_Area(bbox) < 0.01 THEN + IF ST_Area(bbox) < 0.005 THEN -- for smaller features get the nearest road SELECT getNearestRoadPlaceId(poi_partition, bbox) INTO parent_place_id; --DEBUG: RAISE WARNING 'Checked for nearest way (%)', parent_place_id;