altoslib: Provide toString method for AltosLatLon
[fw/altos] / altoslib / AltosLatLon.java
index f1ecfc9002b49ce28c811716bd042c3b9e39388c..dc606ccb74bb517c5e53bded970937bca073c913 100644 (file)
@@ -15,7 +15,7 @@
  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
  */
 
-package org.altusmetrum.altoslib_6;
+package org.altusmetrum.altoslib_7;
 
 public class AltosLatLon {
        public double   lat;
@@ -27,6 +27,10 @@ public class AltosLatLon {
                return lat == other.lat && lon == other.lon;
        }
 
+       public String toString() {
+               return String.format("%f/%f", lat, lon);
+       }
+
        public AltosLatLon(double lat, double lon) {
                this.lat = lat;
                this.lon = lon;