]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/PlaceLookup.php
adapt frontend to new interpolation table layout
[nominatim.git] / lib-php / PlaceLookup.php
index 09acb54444c86872fe1cd6682a15d7f2b0664c35..0e4b63bc6ba81335b2c7ec78f3f9fa17363adcdd 100644 (file)
@@ -405,7 +405,7 @@ class PlaceLookup
                 $sSQL .= '         CASE ';             // interpolate the housenumbers here
                 $sSQL .= '           WHEN startnumber != endnumber ';
                 $sSQL .= '           THEN ST_LineInterpolatePoint(linegeo, (housenumber_for_place-startnumber::float)/(endnumber-startnumber)::float) ';
-                $sSQL .= '           ELSE ST_LineInterpolatePoint(linegeo, 0.5) ';
+                $sSQL .= '           ELSE linegeo ';
                 $sSQL .= '         END as centroid, ';
                 $sSQL .= '         parent_place_id, ';
                 $sSQL .= '         housenumber_for_place ';