X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/db3ced17bbfff00411f506d8c84419c875959d5e..4a2873617dcbaf58ff6135aa7d8dcb115c0cc5ba:/lib-php/Result.php diff --git a/lib-php/Result.php b/lib-php/Result.php index a67c2fe4..a7747ea3 100644 --- a/lib-php/Result.php +++ b/lib-php/Result.php @@ -26,6 +26,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 +86,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) {