]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/search.php
remove the structuredAddressElement function from search that was moved to lib.php
[nominatim.git] / website / search.php
index dc6b01e444051c53a849a2cea2fa4b7a2f9b81b5..3eb50aa20bc1e4b3aceb7dce96bb4fcf3d32ea9f 100755 (executable)
                $sQuery = join(', ',$aPhrases);
        }
 
-       function structuredAddressElement(&$aStructuredQuery, &$iMinAddressRank, &$iMaxAddressRank, $aParams, $sKey, $iNewMinAddressRank, $iNewMaxAddressRank)
-       {
-               if (!isset($_GET[$sKey])) return false;
-               $sValue = trim($_GET[$sKey]);
-               if (!$sValue) return false;
-               $aStructuredQuery[$sKey] = $sValue;
-               if ($iMinAddressRank == 0 && $iMaxAddressRank == 30)
-               {
-                       $iMinAddressRank = $iNewMinAddressRank;
-                       $iMaxAddressRank = $iNewMaxAddressRank;
-               }
-               return true;
-       }
-
        // Structured query?
        $aStructuredOptions = array(
                                array('amenity', 26, 30),