Welcome Guest, Not a member yet? Register   Sign In
ZIP Code proximity - how to calculate?
#2

[eluser]Mirage[/eluser]
[quote author="spheroid" date="1209688468"]Anyone know of any good PHP libraries to figure out ZIP code proximity?[/quote]

I wrote something like that for a client. Buy a Zip Code db that includes Latitude and Longintude for the various codes. I get mine at ZipCode Download. Then in what ever table you're tracking add columns for Latitude and Longitude and update the the table with values for the zipcode table. Doing it that way saves you a time consuming join when doing the query.

Then the secret bit of salt is a SQL query that can approximate all included latitude/longitude coordinates given your starting point. Check it out at Endless Summer - a site I wrote in CI.

Cheers!


Messages In This Thread
ZIP Code proximity - how to calculate? - by El Forum - 05-01-2008, 01:34 PM
ZIP Code proximity - how to calculate? - by El Forum - 05-01-2008, 02:07 PM
ZIP Code proximity - how to calculate? - by El Forum - 05-01-2008, 05:04 PM
ZIP Code proximity - how to calculate? - by El Forum - 05-01-2008, 05:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB