altosdroid: rework lat/lon to more common format
authorMike Beattie <mike@ethernal.org>
Thu, 30 Aug 2012 01:20:10 +0000 (13:20 +1200)
committerMike Beattie <mike@ethernal.org>
Thu, 30 Aug 2012 01:20:10 +0000 (13:20 +1200)
Signed-off-by: Mike Beattie <mike@ethernal.org>
altosdroid/src/org/altusmetrum/AltosDroid/AltosDroid.java

index f8e60e280fbfb7287cf8064d6760d45b85c57602..b44b8ce9d28c6e1a03ff4e58eb46c9f62dd3d3c7 100644 (file)
@@ -198,7 +198,7 @@ public class AltosDroid extends Activity {
                }
                int deg = (int) Math.floor(p);
                double min = (p - Math.floor(p)) * 60.0;
-               return String.format("%s %d° %9.6f", h, deg, min);
+               return String.format("%d° %9.6f\" %s", deg, min, h);
        }
 
        @Override