mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-11-01 07:13:56 +01:00
Added documentation
This commit is contained in:
parent
d7b20e19f0
commit
f076ec2fc2
1 changed files with 1 additions and 2 deletions
|
|
@ -30,7 +30,6 @@ public class MwVolleyApi {
|
|||
private Context context;
|
||||
private static String coordsLog;
|
||||
|
||||
|
||||
protected static HashSet<String> categorySet;
|
||||
|
||||
//To check later on whether any nearby categories were found
|
||||
|
|
@ -47,11 +46,11 @@ public class MwVolleyApi {
|
|||
return list;
|
||||
}
|
||||
|
||||
|
||||
public void request(String coords) {
|
||||
|
||||
coordsLog = coords;
|
||||
|
||||
//If <10 categories found, repeat API call with incremented radius
|
||||
for (int radius=100; radius<=10000; radius=radius*10) {
|
||||
String apiUrl = buildUrl(coords, radius);
|
||||
Log.d("Image", "URL: " + apiUrl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue