Hi @zhangsan
Please find below a very simple solution implemented in Java to calculate distances between two Latitude and Longitude coordinates. It does it in Km & Miles (land & Nautical)
20211205 Pikairos calculate distance between longitude and latitude in Java.knwf (28 KB)
Hope this helps
Best wishes
Ael
PS: The Java source code is from here
你好 @zhangsan
请在下面找到一个用 Java 实现的非常简单的解决方案,用于计算两个纬度和经度坐标之间的距离。 它以公里和英里(陆地和海洋)完成
希望这可以帮助 ;-)
最好的祝愿
Ael