mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
enforce limit as maximum number of results
This commit is contained in:
@@ -1167,6 +1167,9 @@
|
|||||||
$aClassTypeNameDone[$aResult['osm_type'].$aResult['osm_class'].$aResult['name']] = true;
|
$aClassTypeNameDone[$aResult['osm_type'].$aResult['osm_class'].$aResult['name']] = true;
|
||||||
$aSearchResults[] = $aResult;
|
$aSearchResults[] = $aResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Absolute limit on number of results
|
||||||
|
if (sizeof($aSearchResults) >= $iLimit) break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$sDataDate = $oDB->getOne("select TO_CHAR(lastimportdate - '1 day'::interval,'YYYY/MM/DD') from import_status limit 1");
|
$sDataDate = $oDB->getOne("select TO_CHAR(lastimportdate - '1 day'::interval,'YYYY/MM/DD') from import_status limit 1");
|
||||||
|
|||||||
Reference in New Issue
Block a user