]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/function/search/SearchResult.java
Version 18, July 2015
[GpsPrune.git] / tim / prune / function / search / SearchResult.java
similarity index 68%
rename from tim/prune/function/gpsies/GpsiesTrack.java
rename to tim/prune/function/search/SearchResult.java
index da1339ee113883c19788d9df6bfbeb51242bb4f7..2a05a8cf22e7c818e12250fba37ec7b5fb98b065 100644 (file)
@@ -1,9 +1,9 @@
-package tim.prune.function.gpsies;
+package tim.prune.function.search;
 
 /**
- * Class to hold a single track from Gpsies.com
+ * Class to hold a search result from wikipedia / gpsies / panoramio etc
  */
-public class GpsiesTrack
+public class SearchResult
 {
        /** Track name or title */
        private String _trackName = null;
@@ -15,6 +15,8 @@ public class GpsiesTrack
        private double _trackLength = 0.0;
        /** Download link */
        private String _downloadLink = null;
+       /** Coordinates of point */
+       private String _latitude = null, _longitude = null;
 
 
        /**
@@ -96,4 +98,32 @@ public class GpsiesTrack
        {
                return _downloadLink;
        }
+
+       /**
+        * @param inLatitude latitude
+        */
+       public void setLatitude(String inLatitude) {
+               _latitude = inLatitude;
+       }
+
+       /**
+        * @return latitude
+        */
+       public String getLatitude() {
+               return _latitude;
+       }
+
+       /**
+        * @param inLongitude longitude
+        */
+       public void setLongitude(String inLongitude) {
+               _longitude = inLongitude;
+       }
+
+       /**
+        * @return longitude
+        */
+       public String getLongitude() {
+               return _longitude;
+       }
 }