mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-26 06:22:13 +03:00
remove the structuredAddressElement function from search that was moved to lib.php
This commit is contained in:
parent
62b1fba68a
commit
5413abfb1e
@ -138,20 +138,6 @@
|
||||
$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),
|
||||
|
Loading…
Reference in New Issue
Block a user