我想使用SQL Server计算当前行纬度和经度与下一行纬度和经度之间的距离。这是我的表:
+----+-----------+------------+----------+
| ID | lat | lon | distance |
+----+-----------+------------+----------+
| 1 | 12.64464 | 77.56497 | 15.446 |
| 2 | 12.9897 | 77.8989 | 16.46 |
| 3 | 12.898 | 77.4478979 | 17.89 |
| 4 | 12.646879 | 77.689897 | 18.47 |
+----+-----------+------------+----------+
答案 0 :(得分:0)
请参阅Calculate distance, bearing and more between Latitude/Longitude points页面。它可能会为您提供您正在寻找的解决方案。