PHP Classes

Zip Codes Range: Finds zip codes within distance of other zip code

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 51%Total: 2,972 All time: 1,255 This week: 455Up
Version License Categories
zipcodesrange 1.0The PHP LicenseDatabases, Geography


This package is specific mainly for applications used in United States United States .

This class can be used to find all United States zip codes within a given distance range of a given zip code.

It queries a zip code database and will return an array of zip codes plus the distance from the original zip code.

Innovation Award
PHP Programming Innovation award nominee
May 2004
Number 7

Prize: One subscription to the PHP Magazine
There are certain types of Web applications that can benefit from knowing the exact geographic location of their users. Some of those applications could for instance tell about resources of the interest of the users that are located in their neighborhood.

Most users are not able to tell where they are located, but usually they are able to tell what is the postal zip code of their region. Each zip code can be associated with the approximate geographic coordinates of its region.

Locating resources near the region of an user is a matter of determine which zip codes are located within a reasonable limit distance from the zip code informed by the user.

This class provides a solution this problem suitable for sites of users living the United States. It consists in looking up a database of coordinates of zip codes to figure which other zip codes are located in the same region.

Manuel Lemos
Picture of Scott Mattocks
Name: Scott Mattocks <contact>
Classes: 4 packages by
Country: United States United States
Age: 46
All time rank: 12414 in United States United States
Week rank: 346 Down39 in United States United States Down
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file ZipCodesRange.class.php Class Class file
Accessible without login Plain text file ZipCodesTableDoc.txt Doc. Database Documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,255
This week:455Up
 User Ratings  
 All time