且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何找到两个地理点之间的距离?

更新时间:2023-02-01 22:24:30

试试Location.distanceBetween(..)

更新:

如果您从 GeoPoint 获取纬度/经度,那么它们是微度数.您必须乘以 1e6.

If you are getting lat/lon from GeoPoint then they are in microdegrees. You must multiply by 1e6.