aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/maps/google/GoogleGeoPoint.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/maps/google/GoogleGeoPoint.java')
-rw-r--r--main/src/cgeo/geocaching/maps/google/GoogleGeoPoint.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/maps/google/GoogleGeoPoint.java b/main/src/cgeo/geocaching/maps/google/GoogleGeoPoint.java
index 56bc40c..d5f6385 100644
--- a/main/src/cgeo/geocaching/maps/google/GoogleGeoPoint.java
+++ b/main/src/cgeo/geocaching/maps/google/GoogleGeoPoint.java
@@ -1,5 +1,6 @@
package cgeo.geocaching.maps.google;
+import cgeo.geocaching.geopoint.Geopoint;
import cgeo.geocaching.maps.interfaces.GeoPointImpl;
import com.google.android.maps.GeoPoint;
@@ -10,4 +11,9 @@ public class GoogleGeoPoint extends GeoPoint implements GeoPointImpl {
super(latitudeE6, longitudeE6);
}
+ @Override
+ public Geopoint getCoords() {
+ return new Geopoint(getLatitudeE6() / 1e6, getLongitudeE6() / 1e6);
+ }
+
}