aboutsummaryrefslogtreecommitdiffstats
path: root/src/cgeo/geocaching/mapinterfaces/MapFactory.java
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2011-09-08 00:00:58 +0200
committerSamuel Tardieu <sam@rfc1149.net>2011-09-08 11:32:14 +0200
commit39ec7accd759fd60706523b366977ba371efd168 (patch)
tree401ba08d9ec58e49d02ce614e12db5cf7b2b57bd /src/cgeo/geocaching/mapinterfaces/MapFactory.java
parent668472ec735f827a4741a971614596df02618689 (diff)
downloadcgeo-39ec7accd759fd60706523b366977ba371efd168.zip
cgeo-39ec7accd759fd60706523b366977ba371efd168.tar.gz
cgeo-39ec7accd759fd60706523b366977ba371efd168.tar.bz2
Refactoring to use Geopoint for coordinates
This uses the new Geopoint immutable class discussed in #58. No more independent longitude or latitude fields -- they are now treated and defined as a consistent pair.
Diffstat (limited to 'src/cgeo/geocaching/mapinterfaces/MapFactory.java')
-rw-r--r--src/cgeo/geocaching/mapinterfaces/MapFactory.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cgeo/geocaching/mapinterfaces/MapFactory.java b/src/cgeo/geocaching/mapinterfaces/MapFactory.java
index 4348c40..f43ceaf 100644
--- a/src/cgeo/geocaching/mapinterfaces/MapFactory.java
+++ b/src/cgeo/geocaching/mapinterfaces/MapFactory.java
@@ -4,6 +4,7 @@ import android.app.Activity;
import android.content.Context;
import cgeo.geocaching.cgCoord;
import cgeo.geocaching.cgUser;
+import cgeo.geocaching.geopoint.Geopoint;
/**
* Defines functions of a factory class to get implementation specific objects
@@ -19,7 +20,7 @@ public interface MapFactory {
public int getMapLayoutId();
- public GeoPointImpl getGeoPointBase(int latE6, int lonE6);
+ public GeoPointImpl getGeoPointBase(final Geopoint coords);
CacheOverlayItemImpl getCacheOverlayItem(cgCoord coordinate, String type);