public static boolean isUnique ( List < GeoLocation > list , double delta ) { Location [ ] array = new Location [ list . size ( ) ] ; int index = 0 ; for ( GeoLocation gl : list ) { array [ index ++ ] = gl . getLocation ( ) ; } return ( Location . radius ( array ) <= delta ) ; }
Returns true if greatest distance of any location from their center is less than given delta in nm .