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();
|
||||
//TODO: Check if we need String or double coords, and in what format
|
||||
//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");
|
||||
|
||||
BufferedReader in = new BufferedReader(
|
||||
new InputStreamReader(file.openStream()));
|
||||
BufferedReader in = new BufferedReader(new InputStreamReader(file.openStream()));
|
||||
|
||||
boolean firstLine = true;
|
||||
String line;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ public class Place {
|
|||
public Uri imageUrl;
|
||||
public Uri secondaryImageUrl;
|
||||
public LatLng location;
|
||||
public String city;
|
||||
|
||||
public Bitmap image;
|
||||
public Bitmap secondaryImage;
|
||||
|
|
@ -23,14 +22,12 @@ public class Place {
|
|||
public Place() {}
|
||||
|
||||
public Place(String name, String description, String longDescription, Uri imageUrl,
|
||||
Uri secondaryImageUrl, LatLng location, String city) {
|
||||
Uri secondaryImageUrl, LatLng location) {
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
this.longDescription = longDescription;
|
||||
this.imageUrl = imageUrl;
|
||||
this.secondaryImageUrl = secondaryImageUrl;
|
||||
this.location = location;
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue