/** Returns the minimum between the provided distance 'initialRadius' and the * maximum distance/radius from the point 'center' before overlapping **/ public static double maxRadialDistance(GeoPoint center, double initialRadius) { final double maxRadius = maxRadialDistanceMeters(center.lat(), center.lon()); return Math.min(initialRadius, maxRadius); }
toValue = GeoUtils.maxRadialDistanceMeters(point.lat(), point.lon());