]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/search.php
Merge branch 'master' of github.com:twain47/Nominatim
[nominatim.git] / website / search.php
index a2d8729f5cde4190264175f240c32b2f52b8f131..59d57d58a2620f4ed87622c33179d86dcfa92387 100755 (executable)
                                                        else
                                                        {
                                                                $sSQL = "select place_id from placex where class='".$aSearch['sClass']."' and type='".$aSearch['sType']."'";
-                                                               $sSQL .= " and st_contains($sViewboxSmallSQL, centroid)";
+                                                               $sSQL .= " and st_contains($sViewboxSmallSQL, geometry)";
                                                                if ($sCountryCodesSQL) $sSQL .= " and country_code in ($sCountryCodesSQL)";                                                             
                                                                if ($sViewboxCentreSQL) $sSQL .= " order by st_distance($sViewboxCentreSQL, centroid) asc";
                                                                $sSQL .= " limit $iLimit";