]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/lib.php
give mild preference to results in viewbox
[nominatim.git] / lib / lib.php
index 3b16b399a6e9eb9001ac2755073ba491836657dd..3ed66237e955cdff43da2122cbcfe6bad6f52d19 100644 (file)
        {
                $aResult = array(array(join(' ',$aWords)));
                $sFirstToken = '';
-               if ($iDepth < 8) {
+               if ($iDepth < 7) {
                        while(sizeof($aWords) > 1)
                        {
                                $sWord = array_shift($aWords);
                if ($aItemListValues) $aAddressRankList = array_merge($aAddressRankList, $aItemListValues);
                return true;
        }
+
+       function addQuotes($s)
+       {
+               return "'".$s."'";
+       }