]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/Geocode.php
fix case sensitivity of cyrillic ghe
[nominatim.git] / lib / Geocode.php
index bb463445ef1bcdf9a052bad73749fa62e3efea35..7f00de6e2f054c980adef55425c5f422fb6bc5d0 100644 (file)
                                                                {
                                                                        $sSQL = "select place_id from placex where calculated_country_code='".$aSearch['sCountryCode']."' and rank_search = 4";
                                                                        if ($sCountryCodesSQL) $sSQL .= " and calculated_country_code in ($sCountryCodesSQL)";
+                                    if ($bBoundingBoxSearch)
+                                        $sSQL .= " and st_overlaps($this->sViewboxSmallSQL, geometry)";
                                                                        $sSQL .= " order by st_area(geometry) desc limit 1";
                                                                        if (CONST_Debug) var_dump($sSQL);
                                                                        $aPlaceIDs = $this->oDB->getCol($sSQL);