MrShi
4 天以前 4fabfe4dbd2eb28d07a4350597d314958cc1c281
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
}