I implemented the onMoveCircleEnd() method of the CircleManagerListener interface to get the new coordinates of the circle after it has been dragged on the map. However, it was returning the original coordinates of the marker/circle.
After looking through the code, I found out that its because the internal variable center of GeofenceCircle class is not being updated properly. So, I suggest two solutions:
-
In public void onCenterUpdated(LatLng center) , update the internal 'center' variable as well
-
In public LatLng getCenter() { return center; } change to
public LatLng getCenter() { return centerMarker.getPosition(); }