Re: geographic search engine
| From: | symbulos partners | Date: | Wed, 12 Jan 2005 17:44:18 +0000 |
| Subject: | Re: geographic search engine | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-206215@lists.php.net to get a copy of this message | ||
> So often php-general is graced with the presence of people with
> multiple personalities.. or are you really the borg? :)
What??
>
>> Any body has any experience with anything similar?
>
> I coded a zip code to distance calculater last week.
>
> x = 69.1 * ( zip2.lat - zip1.lat )
> y = 69.1 * ( zip2.lon - zip1.lon ) * cos( zip1.lat / 57.3 )
> miles = sqrt( x^2 + y^2 )
>
> This does not take into account the curve of the earth. In addition
> you'll need a db with the latitude and longitude for each zip code.
Does it work for UK postcodes? Where do you find UK post codes to latitude
databases?
--
symbulos partners
-.-
symbulos - ethical services for your organisation
http://www.symbulos.com