PHP Zip Code Range and Distance Calculation

April 19th, 2005

Planet Source Code Superior Code Winner!

This is a PHP class to do various calculations with zip codes. It's primary purposes are to calculate the distance between two zip codes and to extract all the zip codes that are within a range of a given zip code. All calculations are based on lattitude and longitude coordinates stored in the database. Included is a class file, demonstration file, and the sql files required to create and populate the MySQL tables.
Read the rest of this entry »