Re: [PHP] Re: Find midpoint between two points

2007-02-08 Thread M5
Thanks for pointing out the PHP's deg2rad requirement. That was the problem. ...Rene On 7-Feb-07, at 7:30 PM, Gregory Beaver wrote: M5 wrote: I found a nice javascript function that takes two points of latitude and longitude and returns a midpoint. I'm now trying to rewrite in PHP, but

[PHP] Re: Find midpoint between two points

2007-02-07 Thread Gregory Beaver
M5 wrote: I found a nice javascript function that takes two points of latitude and longitude and returns a midpoint. I'm now trying to rewrite in PHP, but having some problems. Here's the original javascript function, taken from http://www.movable-type.co.uk/scripts/LatLong.html :