mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Modify parameters for Nearby query
This commit is contained in:
parent
678bd33410
commit
e8556a8ecd
1 changed files with 3 additions and 3 deletions
|
|
@ -17,8 +17,8 @@ import timber.log.Timber;
|
|||
@Singleton
|
||||
public class NearbyPlaces {
|
||||
|
||||
private static final double INITIAL_RADIUS = 1.0; // in kilometers
|
||||
private static final double RADIUS_MULTIPLIER = 1.618;
|
||||
private static final double INITIAL_RADIUS = 0.3; // in kilometers
|
||||
private static final double RADIUS_MULTIPLIER = 2.0;
|
||||
public double radius = INITIAL_RADIUS;
|
||||
|
||||
private final OkHttpJsonApiClient okHttpJsonApiClient;
|
||||
|
|
@ -55,7 +55,7 @@ public class NearbyPlaces {
|
|||
maxRadius = 5; // Return places only in 5 km area
|
||||
radius = INITIAL_RADIUS; // refresh radius again, otherwise increased radius is grater than MAX_RADIUS, thus returns null
|
||||
} else {
|
||||
minResults = 40;
|
||||
minResults = 20;
|
||||
maxRadius = 300.0; // in kilometers
|
||||
radius = INITIAL_RADIUS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue