aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/maps/google/GoogleCacheOverlayItem.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/maps/google/GoogleCacheOverlayItem.java')
-rw-r--r--main/src/cgeo/geocaching/maps/google/GoogleCacheOverlayItem.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/maps/google/GoogleCacheOverlayItem.java b/main/src/cgeo/geocaching/maps/google/GoogleCacheOverlayItem.java
new file mode 100644
index 0000000..f138e90
--- /dev/null
+++ b/main/src/cgeo/geocaching/maps/google/GoogleCacheOverlayItem.java
@@ -0,0 +1,28 @@
+package cgeo.geocaching.maps.google;
+
+import cgeo.geocaching.cgCoord;
+import cgeo.geocaching.maps.interfaces.CachesOverlayItemImpl;
+
+import com.google.android.maps.GeoPoint;
+import com.google.android.maps.OverlayItem;
+
+public class GoogleCacheOverlayItem extends OverlayItem implements CachesOverlayItemImpl {
+ private String cacheType = null;
+ private cgCoord coord;
+
+ public GoogleCacheOverlayItem(cgCoord coordinate, String type) {
+ super(new GeoPoint(coordinate.coords.getLatitudeE6(), coordinate.coords.getLongitudeE6()), coordinate.name, "");
+
+ this.cacheType = type;
+ this.coord = coordinate;
+ }
+
+ public cgCoord getCoord() {
+ return coord;
+ }
+
+ public String getType() {
+ return cacheType;
+ }
+
+}