PHP/MySQL Books

Download
Instant download after
secure credit card
or Paypal purchase.

Buy It!

PHP ZIP Code Locator 4.0 - FAQ

Performs radius searches on any existing location table that contains a 5-digit ZIP code.

  • Works with your location tables, no need to reload your data into vendor tables.
  • Compatible with international data.
  • Includes ZIP code database with latitudes and longitudes.
  • No recurring costs/subscription fees.
  • Fully customizable input forms and output display.

Use it for store/dealer locators, community member profiles, etc.

Demo: National Recreation Area Search

ZIP

Canadian users: Canadian postal code add-on is now available.

NOTE: You will need both PHP ZIP Code Locator 4.0 and the Canadian Postal Code Database to create locator scripts that will operate on Canadian locations.

International users: PHP Locator will work with your locations if you have a database table containing your country's postal codes (including latitude and longitude). Lat/lons should be stored as floats and should be one-to-one to the postal codes.

Version 4.0

Released 8/13/2007.

  • Added ability to use alternate postal code data tables (i.e., other than U.S. ZIP codes)
  • Added ability to perform a LEFT JOIN of main location table with other tables
  • Added function to generate javascript to create state/city search options
  • Simplified Locator class
  • Updated ZIP code data
  • Updated user manual
  • Added more examples

Version history at freshmeat.

System Requirements

Description

Frequently Asked Questions

PHP ZIP Code Locator is a PHP web server script that allows website developers to quickly, easily and affordably implement a professional ZIP code locator system on their site.

It performs radius searches on any table in your MySQL database that contains a 5-digit ZIP code column. Unlike other ZIP code locators, there is no need to reload your location data into a vendor-supplied location table.

Simply tell it the name of your location table and the name of the ZIP code column and let it do the rest. Users can then quickly locate your store locations, dealers, distributors, members, etc.

With this script, flexibility is the ultimate design goal. It works with any location table, any U.S. ZIP code data, and allows the web developer total control of the input/output format. It can automatically create a basic search form and generate an HTML table containing the search results. Or if you want, define the search form and output format yourself.

You can also easily add additional query fields to your search form. These can be used to limit the search results based on any additional columns in your location table. You can also have the search form on one page and the results displayed on another.

The locator includes a sample location table and web page examples. Change a couple lines in one of the example pages, and you will be instantly searching your own location tables.