Support for 7-digit postal codes in Egypt by faustbrian · Pull Request #14 · brick/postcode
The new Egypt Postal code system depends on assigning 7 digit postal code number to every block of buildings, which assure better accuracy of identifying the postal code.
Then new Egypt Postal code system depends on assigning 7 digit postal code number to every block of buildings, which assure better accuracy of identifying the postal code. https://epostalmap.com/en/
@BenMorel I don't really have any official sources. The closest would probably be https://www.upu.int/UPU/media/upu/PostalEntitiesFiles/addressingUnit/egyEn.pdf but that's not official from a government.
We started to notice this because we use this package in a logistics product and customers recently started to use 7 digit postal codes for Egypt consignments instead of 5 digit postal codes, so currently we have a workaround that if validation fails for 5 digits we check for 7 digits and that works. All the third-party vendors we integrate also started to recognize 7 digit postal codes for Egypt.
Thank you, the upu.int source looks good to me. Can you please change this sentence in the class docblock:
Postcodes consist of 5 digits, without separator.
Postcodes consist of 5 or 7 digits, without separator.
and add a link to the PDF above in the docblock as well?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters