X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6a7e0d652b1d40a397e1c1386d500101796676c4..1c175e3a67fbfb94f29c47bdcd02fb28136e591b:/lib-php/Result.php diff --git a/lib-php/Result.php b/lib-php/Result.php index a67c2fe4..be103074 100644 --- a/lib-php/Result.php +++ b/lib-php/Result.php @@ -13,8 +13,7 @@ class Result const TABLE_PLACEX = 0; const TABLE_POSTCODE = 1; const TABLE_OSMLINE = 2; - const TABLE_AUX = 3; - const TABLE_TIGER = 4; + const TABLE_TIGER = 3; /// Database table that contains the result. public $iTable; @@ -26,6 +25,8 @@ class Result public $iExactMatches = 0; /// Subranking within the results (the higher the worse). public $iResultRank = 0; + /// Address rank of the result. + public $iAddressRank; public function debugInfo() { @@ -84,7 +85,7 @@ class Result foreach ($aResults as $oRes) { if ($oRes->iResultRank < $iMinRank) { - $aTail = array_merge($aTail, $aHead); + $aTail += $aHead; $aHead = array($oRes->iId => $oRes); $iMinRank = $oRes->iResultRank; } elseif ($oRes->iResultRank == $iMinRank) {