Index: applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationHelper.java
===================================================================
--- applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationHelper.java	(revision 35967)
+++ applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationHelper.java	(revision 35978)
@@ -109,5 +109,5 @@
 
         // get distance in meters and divide it by 100 in advance
-        double distInMeter = w1.greatCircleDistance(w2) / 100.0;
+        double distInMeter = w1.greatCircleDistance((ILatLon) w2) / 100.0;
 
         // get elevation (difference)
Index: applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/grid/EleVertex.java
===================================================================
--- applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/grid/EleVertex.java	(revision 35967)
+++ applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/grid/EleVertex.java	(revision 35978)
@@ -6,4 +6,5 @@
 import java.util.List;
 
+import org.openstreetmap.josm.data.coor.ILatLon;
 import org.openstreetmap.josm.data.coor.LatLon;
 import org.openstreetmap.josm.plugins.elevation.ElevationHelper;
@@ -41,7 +42,7 @@
 
         // compute the (approx.!) area of the vertex using heron's formula
-        double a = p1.greatCircleDistance(p2);
-        double b = p2.greatCircleDistance(p3);
-        double c = p1.greatCircleDistance(p3);
+        double a = p1.greatCircleDistance((ILatLon) p2);
+        double b = p2.greatCircleDistance((ILatLon) p3);
+        double c = p1.greatCircleDistance((ILatLon) p3);
 
         double s = (a + b + c) / 2D;
@@ -55,8 +56,8 @@
         int k = 0;
         for (int i = 0; i < points.length; i++) {
-            EleCoordinate c1 = points[i];
+            ILatLon c1 = points[i];
 
             for (int j = i + 1; j < points.length; j++) {
-                EleCoordinate c2 = points[j];
+                ILatLon c2 = points[j];
                 edges[k++] = new TriangleEdge(i, j, c1.greatCircleDistance(c2));
             }
@@ -119,5 +120,5 @@
 
         double z = (c1.getEle() + c2.getEle()) / 2.0;
-        if (c1.greatCircleDistance(c2) > MIN_DIST) {
+        if (c1.greatCircleDistance((ILatLon) c2) > MIN_DIST) {
             double hgtZ = ElevationHelper.getSrtmElevation(new LatLon(y, x));
 
