mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
remove the structuredAddressElement function from search that was moved to lib.php
This commit is contained in:
@@ -138,20 +138,6 @@
|
|||||||
$sQuery = join(', ',$aPhrases);
|
$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?
|
// Structured query?
|
||||||
$aStructuredOptions = array(
|
$aStructuredOptions = array(
|
||||||
array('amenity', 26, 30),
|
array('amenity', 26, 30),
|
||||||
|
|||||||
Reference in New Issue
Block a user