Skip to content

Commit e8556a8

Browse files
committed
Modify parameters for Nearby query
1 parent 678bd33 commit e8556a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/main/java/fr/free/nrw/commons/nearby/NearbyPlaces.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
@Singleton
1818
public class NearbyPlaces {
1919

20-
private static final double INITIAL_RADIUS = 1.0; // in kilometers
21-
private static final double RADIUS_MULTIPLIER = 1.618;
20+
private static final double INITIAL_RADIUS = 0.3; // in kilometers
21+
private static final double RADIUS_MULTIPLIER = 2.0;
2222
public double radius = INITIAL_RADIUS;
2323

2424
private final OkHttpJsonApiClient okHttpJsonApiClient;
@@ -55,7 +55,7 @@ List<Place> radiusExpander(final LatLng curLatLng, final String lang, final bool
5555
maxRadius = 5; // Return places only in 5 km area
5656
radius = INITIAL_RADIUS; // refresh radius again, otherwise increased radius is grater than MAX_RADIUS, thus returns null
5757
} else {
58-
minResults = 40;
58+
minResults = 20;
5959
maxRadius = 300.0; // in kilometers
6060
radius = INITIAL_RADIUS;
6161
}

0 commit comments

Comments
 (0)