]> git.openstreetmap.org Git - nominatim.git/commitdiff
tweak size of large POIs
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 1 Sep 2020 16:00:40 +0000 (18:00 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 1 Sep 2020 16:00:40 +0000 (18:00 +0200)
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.

sql/functions/placex_triggers.sql

index dc96efd4664976d6f14d6aac9051b551c3677f76..3ddb97c04240225d87345360bbddf7e3ddbd52d7 100644 (file)
@@ -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;