mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
fix base number of returned results
The intent was to always search for at least 10 results. Improves on #882.
This commit is contained in:
@@ -103,7 +103,7 @@ class Geocode
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->iFinalLimit = $iLimit;
|
$this->iFinalLimit = $iLimit;
|
||||||
$this->iLimit = $iLimit + min($iLimit, 10);
|
$this->iLimit = $iLimit + max($iLimit, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setFeatureType($sFeatureType)
|
public function setFeatureType($sFeatureType)
|
||||||
|
|||||||
Reference in New Issue
Block a user