JavaScript:实现计算二维平面上两点之间的距离算法
/*
Calculate the mathematical properties involving coordinates
Calculate the Distance Between 2 Points on a 2 Dimensional Plane
Example: coorDistance(2,2,14,11) will return 15
*/
const euclideanDistance = (longitude1, latitude1, longitude2, latitude2) => {