forked from La_Bureautique/zeg1jeux
La fucking biourotique once again
This commit is contained in:
parent
8b0b245c34
commit
89d60c4b12
|
@ -196,7 +196,7 @@ class Gchange {
|
||||||
return $this->getNearbyPlaces($user->getLat(), $user->getLon(), $radius, null, $maxPlacesNb);
|
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/';
|
$placesCacheDir = 'places-nearby/geopoint/' . $maxDistance . 'km/';
|
||||||
$placesCacheFile = $lat . ',' . $lon . '.json';
|
$placesCacheFile = $lat . ',' . $lon . '.json';
|
||||||
|
|
Loading…
Reference in New Issue