aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/Twitter.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/Twitter.java')
-rw-r--r--main/src/cgeo/geocaching/Twitter.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/Twitter.java b/main/src/cgeo/geocaching/Twitter.java
index 28da23e..6d5ec29 100644
--- a/main/src/cgeo/geocaching/Twitter.java
+++ b/main/src/cgeo/geocaching/Twitter.java
@@ -1,6 +1,7 @@
package cgeo.geocaching;
import cgeo.geocaching.geopoint.Geopoint;
+import cgeo.geocaching.geopoint.GeopointFormatter.Format;
import cgeo.geocaching.network.OAuth;
import org.apache.http.HttpResponse;
@@ -22,8 +23,8 @@ public final class Twitter {
Parameters parameters = new Parameters("status", status);
if (coords != null) {
parameters.put(
- "lat", String.format("%.6f", coords.getLatitude()),
- "long", String.format("%.6f", coords.getLongitude()),
+ "lat", coords.format(Format.LAT_DECDEGREE_RAW),
+ "long", coords.format(Format.LON_DECDEGREE_RAW),
"display_coordinates", "true");
}