You are here: Re: [PHP] Sorting users geographically... « PHP « IT news, forums, messages
Re: [PHP] Sorting users geographically...

Posted by David Grant on 10/01/65 11:32

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

Tony Di Croce wrote:
> 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
> person.
>
> 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?
>
> Hopefully someone responds to this with a Pear package that does exactly
> what I need! :) If that can't happen, then I'd appreciate any options you
> can think of.
>
> td
>
> --
> Free Linux Technical Articles
> http://www.linuxtecharticles.com
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация