public GeoLocation search ( double deltaNM , GeoSearch ... searches ) { List < GeoLocation > list = search ( false , searches ) ; if ( ! list . isEmpty ( ) && GeoDB . isUnique ( list , deltaNM ) ) { return list . get ( 0 ) ; } else { list . removeIf ( ( gl ) - > ! gl . match ( true , searches ) ) ; if ( ! list . isEmpty ( ) && GeoDB . isUnique ( list , deltaNM ) ) { return list . get ( 0 ) ; } else { return null ; } } }
Returns any GeoLocation which matches all tests and is unique in deltaNM range .