准确的 gps 经纬度

Acurrate gps lat long

有什么方法可以在 latitudelongitude 内计算或确定范围吗?

我的应用程序将使用 BroadcastRecevier 寻找当前 latlong 的用户,我想输入一个范围或其他内容。

我正在使用 Place picker,我得到一个 lat/long 即:(lat/lng: (41.48256,2.317142)) 值 place.getLatLong() 所以我想要 这些值是准确的.

您可以使用

location.getAccuracy()

获取以米为单位的精度。

来自文档

Get the estimated accuracy of this location, in meters.

We define accuracy as the radius of 68% confidence. In other words, if you draw a circle centered at this location's latitude and longitude, and with a radius equal to the accuracy, then there is a 68% probability that the true location is inside the circle.

In statistical terms, it is assumed that location errors are random with a normal distribution, so the 68% confidence circle represents one standard deviation. Note that in practice, location errors do not always follow such a simple distribution.

This accuracy estimation is only concerned with horizontal accuracy, and does not indicate the accuracy of bearing, velocity or altitude if those are included in this Location.

If this location does not have an accuracy, then 0.0 is returned. All locations generated by the LocationManager include an accuracy.

更新

您尝试做的是地理围栏。请看一下 this.