]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/lib.php
give mild preference to results in viewbox
[nominatim.git] / lib / lib.php
index cac95d845df136f7e844c80b6dc6c64263c1472e..3ed66237e955cdff43da2122cbcfe6bad6f52d19 100644 (file)
                return $iPlaceID;
        }
 
-       function loadStructuredAddressElement(&$aStructuredQuery, &$iMinAddressRank, &$iMaxAddressRank, $aParams, $sKey, $iNewMinAddressRank, $iNewMaxAddressRank)
+       function loadStructuredAddressElement(&$aStructuredQuery, &$iMinAddressRank, &$iMaxAddressRank, &$aAddressRankList, $aParams, $sKey, $iNewMinAddressRank, $iNewMaxAddressRank, $aItemListValues)
        {
                if (!isset($_GET[$sKey])) return false;
                $sValue = trim($_GET[$sKey]);
                        $iMinAddressRank = $iNewMinAddressRank;
                        $iMaxAddressRank = $iNewMaxAddressRank;
                }
+               if ($aItemListValues) $aAddressRankList = array_merge($aAddressRankList, $aItemListValues);
                return true;
        }
+
+       function addQuotes($s)
+       {
+               return "'".$s."'";
+       }