Index: applications/editors/josm/plugins/geochat/src/geochat/ChatServerConnection.java
===================================================================
--- applications/editors/josm/plugins/geochat/src/geochat/ChatServerConnection.java	(revision 35163)
+++ applications/editors/josm/plugins/geochat/src/geochat/ChatServerConnection.java	(revision 35978)
@@ -19,4 +19,5 @@
 import javax.json.JsonObject;
 
+import org.openstreetmap.josm.data.coor.ILatLon;
 import org.openstreetmap.josm.data.coor.LatLon;
 import org.openstreetmap.josm.data.coor.conversion.DecimalDegreesCoordinateFormat;
@@ -349,5 +350,5 @@
             final boolean needReset;
             final boolean needFullReset = lastUserId != userId;
-            if (needFullReset || (lastPosition != null && pos.greatCircleDistance(lastPosition) > MAX_JUMP)) {
+            if (needFullReset || (lastPosition != null && pos.greatCircleDistance((ILatLon) lastPosition) > MAX_JUMP)) {
                 // reset messages
                 lastId = 0;
