/ Published in: PHP

Get the distance between 2 points on a map
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function getDistanceBetweenPoints($latitude1, $longitude1, $latitude2, $longitude2) { $theta = $longitude1 - $longitude2; $distance = ($distance * 69.09) * 1.609344; }
Comments
