]> git.openstreetmap.org Git - nominatim.git/commitdiff
remove the structuredAddressElement function from search that was moved to lib.php
authorBrian Quinion <brian.quinion@mapquest.com>
Fri, 7 Jun 2013 15:23:37 +0000 (16:23 +0100)
committerBrian Quinion <brian.quinion@mapquest.com>
Fri, 7 Jun 2013 15:23:37 +0000 (16:23 +0100)
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),