Re: [PHP] Sorting users geographically...

2005-11-21 Thread David Grant
Hi Tony, I would think the first step would be to find a web service or dataset to convert a zip code to longitude/latitude. The formula for calculating distances from long/lat is available here: http://www.colorado.edu/geography/gcraft/warmup/aquifer/html/distance.html Cheers, David Grant

RE: [PHP] Sorting users geographically...

2005-11-21 Thread Jim Moseby
I'm helping a friend of mine build a matchmaking website, and we have a doozy of a problem to solve: What I need to do is two fold: #1 Collect whatever geographical information I need from each user to enable #2 #2 Be able to run query's to find people NEAR (geographically) another

RE: [PHP] Sorting users geographically...

2005-11-21 Thread Sandy Keathley
Does anyone know of any commercial or free implementations of this? Is it primarily a database problem or is their some way (computationally) to compute the probable proximity of two zip codes? There is a class called zipLocator. I think I found it at phpclasses.org. It uses a large

Re: [PHP] Sorting users geographically...

2005-11-21 Thread Marcus Bointon
On 21 Nov 2005, at 14:14, Tony Di Croce wrote: Does anyone know of any commercial or free implementations of this? Is it primarily a database problem or is their some way (computationally) to compute the probable proximity of two zip codes? All the suggested packages could be all you need,