zipcode
Calculate distance between Zip Codes… AND users.
Ok, for starters, you don’t really need to use the Haversine formula here. For large distances where a less accurate formula produces a larger error, your users don’t care if the match is plus or minus a few miles, and for closer distances, the error is very small. There are easier (to calculate) formulas listed … Read more
Mapping US zip code to time zone [closed]
I just found a free zip database that includes time offset and participation in DST. I do like Erik J’s answer, as it would help me choose the actual time zone as opposed to just the offset (because you never can be completely sure on the rules), but I think I might start with this, … Read more
What is the ultimate postal code and zip regex?
The unicode CLDR contains the postal code regex for each country. (158 regex’s in total!) Download core.zip from http://unicode.org/Public/cldr/26.0.1/ unzip core.zip Take a look at common/supplemental/postalCodeData.xml from the unzipped content (direct content: common/supplemental/postalCodeData.xml) Google also has a web service with per-country address formatting information, including postal codes, here – http://i18napis.appspot.com/address (I found that link via … Read more