Re: [PHP] longitude/latitude function

2002-11-16 Thread Frederick L. Steinkopf
[EMAIL PROTECTED] To: Edward Peloke [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, November 15, 2002 11:49 AM Subject: Re: [PHP] longitude/latitude function I got that from http://freshmeat.net/projects/zipdy/?topic_id=66. It's a program called Zipdy that does these calculations. There's also

Re: [PHP] longitude/latitude function

2002-11-15 Thread Aaron Gould
Try this snippet... I can't vouch for its accuracy since I am not a mathematician: ? // Function takes latitude and longitude of two places as input // and prints the distance in miles and kms. function calculateDistance($lat1, $lon1, $lat2, $lon2) // Convert all the degrees to radians

RE: [PHP] longitude/latitude function

2002-11-15 Thread Edward Peloke
: Re: [PHP] longitude/latitude function Try this snippet... I can't vouch for its accuracy since I am not a mathematician: ? // Function takes latitude and longitude of two places as input // and prints the distance in miles and kms. function calculateDistance($lat1, $lon1, $lat2, $lon2

Re: [PHP] longitude/latitude function

2002-11-15 Thread Aaron Gould
Parts Canada - Original Message - From: Edward Peloke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 15, 2002 11:55 AM Subject: RE: [PHP] longitude/latitude function Thanks Aaron, If you don't mind me asking, where did you get it? It seems to give a better answer

RE: [PHP] longitude/latitude function

2002-11-15 Thread Edward Peloke
To: Edward Peloke; [EMAIL PROTECTED] Subject: Re: [PHP] longitude/latitude function I got that from http://freshmeat.net/projects/zipdy/?topic_id=66. It's a program called Zipdy that does these calculations. There's also a similar function on the US government census site (can't remember where

Re: [PHP] longitude/latitude function

2002-11-15 Thread jef
did you get it? It seems to give a better answer than my function. Thanks! Eddie -Original Message- From: Aaron Gould [mailto:webdevel;partscanada.com] Sent: Friday, November 15, 2002 11:04 AM To: Edward Peloke; [EMAIL PROTECTED] Subject: Re: [PHP] longitude/latitude function

Re: [PHP] longitude/latitude function

2002-11-15 Thread Aaron Gould
: Friday, November 15, 2002 11:50 AM To: Edward Peloke; [EMAIL PROTECTED] Subject: Re: [PHP] longitude/latitude function I got that from http://freshmeat.net/projects/zipdy/?topic_id=66. It's a program called Zipdy that does these calculations. There's also a similar function on the US government