aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2012-04-27 12:10:34 +0200
committerSamuel Tardieu <sam@rfc1149.net>2012-04-27 12:10:34 +0200
commitaf61aa12c6b9e0adffc69bae94a0ae28f9c3db7b (patch)
tree1d35a7bd63fc5abc81a47f37d6771b20fafe843c /main/src/cgeo
parent036c3168de8e06b647fb3002c7d77b447f548e18 (diff)
downloadcgeo-af61aa12c6b9e0adffc69bae94a0ae28f9c3db7b.zip
cgeo-af61aa12c6b9e0adffc69bae94a0ae28f9c3db7b.tar.gz
cgeo-af61aa12c6b9e0adffc69bae94a0ae28f9c3db7b.tar.bz2
Define an interface from geographical data
This interface copies the existing methods and may be refined in the future.
Diffstat (limited to 'main/src/cgeo')
-rw-r--r--main/src/cgeo/geocaching/IGeoData.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/IGeoData.java b/main/src/cgeo/geocaching/IGeoData.java
new file mode 100644
index 0000000..d703d1a
--- /dev/null
+++ b/main/src/cgeo/geocaching/IGeoData.java
@@ -0,0 +1,20 @@
+package cgeo.geocaching;
+
+import cgeo.geocaching.enumerations.LocationProviderType;
+import cgeo.geocaching.geopoint.Geopoint;
+
+import android.location.Location;
+
+public interface IGeoData {
+
+ public Location getLocation();
+ public LocationProviderType getLocationProvider();
+ public Geopoint getCoordsNow();
+ public Double getAltitudeNow();
+ public float getBearingNow();
+ public float getSpeedNow();
+ public float getAccuracyNow();
+ public int getSatellitesVisible();
+ public int getSatellitesFixed();
+
+}