且构网

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

如何找到两个geopoints之间的距离?

更新时间:2023-02-01 22:15:32

尝试Location.distanceBetween(..)

更新:

如果您是从的GeoPoint越来越纬度/经度,然后他们在microdegrees。您必须通过1e6个繁殖。

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