altoslib: Provide toString method for AltosLatLon
[fw/altos] / altoslib / AltosLatLon.java
index e0fd45e757c4854a12f78448f5b3fa22792c951d..dc606ccb74bb517c5e53bded970937bca073c913 100644 (file)
@@ -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;