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? 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 Link to comment https://forums.phpfreaks.com/topic/213706-haversine-formula/#findComment-1112355 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.