Code example for Address

Methods: getLatitude, getLongitude

0
         
        if ( address == null ) {
          top.put( (float) count[0], bssid );
        } 
        else { 
          Location.distanceBetween( lat, lon, address.getLatitude(), address.getLongitude(), results );        
          final float meters = results[0];
           
          if ( top.size() <= LIMIT ) {
            putWithBackoff( top, bssid, meters );
          } 
          else { 
            Float last = top.lastKey();
            if ( meters < last ) {
              top.remove( last );
              putWithBackoff( top, bssid, meters );
            } 
          } 
        } 
      }