X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/96d3cb61c80d5fd0219497f74f908ca867ba5dce..a293328f11ecfd9640cc35c530e5137780dd0f8f:/sql/functions.sql?ds=inline

diff --git a/sql/functions.sql b/sql/functions.sql
index dfb64634..1af5fdbf 100644
--- a/sql/functions.sql
+++ b/sql/functions.sql
@@ -5,7 +5,6 @@
 --  score integer
 --);
 
-
 CREATE OR REPLACE FUNCTION getclasstypekey(c text, t text) RETURNS TEXT
   AS $$
 DECLARE
@@ -1389,6 +1388,9 @@ BEGIN
 
 --RAISE WARNING 'finding street for %', NEW;
 
+      -- We won't get a better centroid, besides these places are too small to care
+      NEW.centroid := place_centroid;
+
       NEW.parent_place_id := null;
 
       -- to do that we have to find our parent road
