RE: [PHP] lat lon function

From: Date: Tue, 08 Apr 2003 17:36:11 +0000
Subject: RE: [PHP] lat lon function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-142926@lists.php.net to get a copy of this message
Don, How would I get distance? If my search is for a place with a lat of 30 and long of 87 and I see a place with a lat of 31 and long of 88, how do you get the rough distance? Thanks, Eddie -----Original Message----- From: Don Read [mailto:dread@texas.net] Sent: Tuesday, April 08, 2003 12:51 PM To: Edward Peloke Cc: Php-General@Lists. Php. Net Subject: RE: [PHP] lat lon function On 08-Apr-2003 Edward Peloke wrote: > Thanks, I will start to play with this, has anyone here done a query like > this? > You could bracket the set of *possible* airports by : SELECT ... FROM ... WHERE lat BETWEEN latmin and latmax AND lon BETWEEN lonmin and lonmax The min/max values being calculated as 69 miles per degree from the origin airport. <snip> Regards, -- Don Read dread@texas.net -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it.

« previous php.general (#142926) next »