mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Remove 'city' from place
This commit is contained in:
parent
b13b5c690a
commit
b89ca7628e
3 changed files with 4 additions and 6 deletions
|
|
@ -41,6 +41,8 @@ public class NearbyActivity extends AppCompatActivity {
|
||||||
registerLocationManager();
|
registerLocationManager();
|
||||||
//TODO: Check if we need String or double coords, and in what format
|
//TODO: Check if we need String or double coords, and in what format
|
||||||
//gpsCoords = String.valueOf(currentLatitude) + "|" + String.valueOf(currentLongitude);
|
//gpsCoords = String.valueOf(currentLatitude) + "|" + String.valueOf(currentLongitude);
|
||||||
|
|
||||||
|
//TODO: Use fragment for list like in AttractionListFragment?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,7 @@ public class NearbyPlaces {
|
||||||
|
|
||||||
URL file = new URL("https://tools.wmflabs.org/wiki-needs-pictures/data/data.csv");
|
URL file = new URL("https://tools.wmflabs.org/wiki-needs-pictures/data/data.csv");
|
||||||
|
|
||||||
BufferedReader in = new BufferedReader(
|
BufferedReader in = new BufferedReader(new InputStreamReader(file.openStream()));
|
||||||
new InputStreamReader(file.openStream()));
|
|
||||||
|
|
||||||
boolean firstLine = true;
|
boolean firstLine = true;
|
||||||
String line;
|
String line;
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ public class Place {
|
||||||
public Uri imageUrl;
|
public Uri imageUrl;
|
||||||
public Uri secondaryImageUrl;
|
public Uri secondaryImageUrl;
|
||||||
public LatLng location;
|
public LatLng location;
|
||||||
public String city;
|
|
||||||
|
|
||||||
public Bitmap image;
|
public Bitmap image;
|
||||||
public Bitmap secondaryImage;
|
public Bitmap secondaryImage;
|
||||||
|
|
@ -23,14 +22,12 @@ public class Place {
|
||||||
public Place() {}
|
public Place() {}
|
||||||
|
|
||||||
public Place(String name, String description, String longDescription, Uri imageUrl,
|
public Place(String name, String description, String longDescription, Uri imageUrl,
|
||||||
Uri secondaryImageUrl, LatLng location, String city) {
|
Uri secondaryImageUrl, LatLng location) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
this.longDescription = longDescription;
|
this.longDescription = longDescription;
|
||||||
this.imageUrl = imageUrl;
|
this.imageUrl = imageUrl;
|
||||||
this.secondaryImageUrl = secondaryImageUrl;
|
this.secondaryImageUrl = secondaryImageUrl;
|
||||||
this.location = location;
|
this.location = location;
|
||||||
this.city = city;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue