La fucking biourotique once again

This commit is contained in:
Boris 2022-11-15 17:04:50 +01:00
parent 8b0b245c34
commit 89d60c4b12
1 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ class Gchange {
return $this->getNearbyPlaces($user->getLat(), $user->getLon(), $radius, null, $maxPlacesNb);
}
public function getNearbyPlaces ($lat, $lon, $maxDistance, $minDistance = NULL, $maxPlacesNb) {
public function getNearbyPlaces ($lat, $lon, $maxDistance, $minDistance = NULL, $maxPlacesNb = 15) {
$placesCacheDir = 'places-nearby/geopoint/' . $maxDistance . 'km/';
$placesCacheFile = $lat . ',' . $lon . '.json';
@ -321,7 +321,7 @@ class Gchange {
$result->hits->hits = array();
$rHitsNb = count($r->hits->hits);
for ($i = 0; $i < $rHitsNb; $i++) {
$result->hits->hits[$i] = new stdClass;