1
1
package fr .free .nrw .commons .nearby ;
2
2
3
+ import static fr .free .nrw .commons .utils .LengthUtils .computeDistanceBetween ;
4
+ import static fr .free .nrw .commons .utils .LengthUtils .formatDistanceBetween ;
5
+
3
6
import android .content .Context ;
4
7
import android .content .SharedPreferences ;
5
8
import android .preference .PreferenceManager ;
19
22
20
23
import timber .log .Timber ;
21
24
22
- import static fr .free .nrw .commons .utils .LengthUtils .computeDistanceBetween ;
23
- import static fr .free .nrw .commons .utils .LengthUtils .formatDistanceBetween ;
24
-
25
25
26
26
public class NearbyController {
27
27
private static final int MAX_RESULTS = 1000 ;
@@ -60,7 +60,7 @@ public int compare(Place lhs, Place rhs) {
60
60
* Loads attractions from location for list view, we need to return Place data type.
61
61
* @param curLatLng users current location
62
62
* @param context current activity
63
- * @return
63
+ * @return Place list that holds nearby places
64
64
*/
65
65
66
66
public static List <Place > loadAttractionsFromLocationToPlaces (LatLng curLatLng ,
@@ -79,7 +79,7 @@ public static List<Place> loadAttractionsFromLocationToPlaces(LatLng curLatLng,
79
79
*Loads attractions from location for map view, we need to return BaseMarkerOption data type.
80
80
* @param curLatLng users current location
81
81
* @param context the activity
82
- * @return
82
+ * @return BaseMarkerOprions list that holds nearby places
83
83
*/
84
84
public static List <BaseMarkerOptions > loadAttractionsFromLocationToBaseMarkerOptions (
85
85
LatLng curLatLng ,
0 commit comments