| Subject: | The package uses a non-standard CEP... |  
| Summary: | Package rating comment |  
| Messages: | 4 |  
| Author: | Paulo Diovani Goncalves |  
| Date: | 2012-10-15 13:25:44 |  
| Update: | 2013-05-06 14:12:30 |  
|   |  
 
 | 
 | 
Paulo Diovani Goncalves rated this package as follows:
| Utility:  | Bad | 
| Consistency:  | Bad | 
| Examples:  | Sufficient | 
| 
 | 
  Paulo Diovani Goncalves - 2012-10-15 13:25:44  
The package uses a non-standard CEP checking on Correios by reading the HTML generated by the website service. 
This may easily break the package if/when Correios change its layout and/or infringe legal terms. 
 
To add free CEP consulting on a website, the proper way is using the method listed on http://www.correios.com.br/servicos/cep/cep_coloque.cfm. 
To add an internal CEP consulting (not acessing Corrios website) the only way is by using the e-DNE database (http://www.correios.com.br/produtosaz/produto.cfm?id=C33CF3D4-5056-9163-89DFF3F2A0E8DA5F). 
  
  Ehinarr Elkader - 2012-10-16 00:53:34 -  In reply to message 1 from Paulo Diovani Goncalves 
Hi, very nice approach. 
 
But users can do mistakes: 
 
- How to deal with a wrong CEP number ( do not exists, incorrect lenght, letters (A-Z)). 
- How to deal with different ways to write it (00.000-000,00000-000). 
 
And.. People can use it for commercial purposes? 
 
Cheers 
  
  Gilberto Albino - 2013-05-06 14:07:58 -  In reply to message 1 from Paulo Diovani Goncalves 
I dont think your point of view is valid as a whole. 
You can change the code whenever you want to fit the Correios HTML. 
 
  
  Gilberto Albino - 2013-05-06 14:12:30 -  In reply to message 2 from Ehinarr Elkader 
- How to deal with a wrong CEP number ( do not exists, incorrect lenght, letters (A-Z)). 
Not a problem to implement validation: 
I've posted a different approach with a null return valu on http://pastebin.com/LXc6fE3x 
 
- How to deal with different ways to write it (00.000-000,00000-000). 
Answer: Correios do that! 
 
  
   |