ShoeLace1291 Posted September 18, 2010 Share Posted September 18, 2010 I'm using the haversine formula to calculate the distance between two latitude/longitude pairs. I'm getting a syntax error that says the funcion radians is undefined. I got the code off of the Google Store Locator tutorial which was a mysql query based syntax. I realize that the mysql functions are very different from PHP functions, so what would be the equivalent php function to the mysql "radians" function? Quote Link to comment https://forums.phpfreaks.com/topic/213706-haversine-formula/ Share on other sites More sharing options...
PFMaBiSmAd Posted September 18, 2010 Share Posted September 18, 2010 deg2rad Quote Link to comment https://forums.phpfreaks.com/topic/213706-haversine-formula/#findComment-1112355 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.