aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/maps/google/v1/GoogleGeoPoint.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/maps/google/v1/GoogleGeoPoint.java')
-rw-r--r--main/src/cgeo/geocaching/maps/google/v1/GoogleGeoPoint.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/maps/google/v1/GoogleGeoPoint.java b/main/src/cgeo/geocaching/maps/google/v1/GoogleGeoPoint.java
new file mode 100644
index 0000000..2f540ad
--- /dev/null
+++ b/main/src/cgeo/geocaching/maps/google/v1/GoogleGeoPoint.java
@@ -0,0 +1,19 @@
+package cgeo.geocaching.maps.google.v1;
+
+import cgeo.geocaching.geopoint.Geopoint;
+import cgeo.geocaching.maps.interfaces.GeoPointImpl;
+
+import com.google.android.maps.GeoPoint;
+
+public class GoogleGeoPoint extends GeoPoint implements GeoPointImpl {
+
+ public GoogleGeoPoint(int latitudeE6, int longitudeE6) {
+ super(latitudeE6, longitudeE6);
+ }
+
+ @Override
+ public Geopoint getCoords() {
+ return new Geopoint(getLatitudeE6() / 1e6, getLongitudeE6() / 1e6);
+ }
+
+}