MrShi
2023-12-25 21544c5c6d1dc913ba44edec8c001a2272233ec6
bicycle/utils/utils.js
@@ -9,10 +9,13 @@
      Math.cos(
         rad2) * Math.pow(
         Math.sin(b / 2), 2)));
   s = s * 6378.137;
   s = Math.round(s * 10000) / 10000;
   s = s.toString();
   s = s.substring(0, s.indexOf('.') + 2);
   s = s * 6378.137 * 1000;
   s = (Math.round(s * 10000) / 10000).toFixed(2);
   console.log(s)
   // s = s.toString();
   // s = s.substring(0, s.indexOf('.') + 2);
   return s
}