简体   繁体   English

Google地图准确度半径

[英]Google Map Accuracy Radius

I use Google Maps for my project. 我将Google Maps用于我的项目。 It shows approximate location on a map, surrounded by a blue circle showing the inaccuracy of your position. 它会在地图上显示大概的位置,并用一个蓝色圆圈包围,表示您的位置不正确。 I want to understand how correctly determined my location. 我想了解如何正确确定我的位置。 And the question is how to get the radius of this accuracy circle? 问题是如何获得这个精度圆的半径?

在此处输入图片说明

Location.getAccuracy()-蓝色圆圈的半径值。

GoogleMap.OnMyLocationChangeListener was the way of what the blue dot shows. GoogleMap.OnMyLocationChangeListener是显示蓝点的方式。 It was receiving location and you were able get accuracy but it's deprecated. 它正在接收位置,您可以准确无误,但已过时。

Google suggests FusedLocationProviderApi instead. Google建议FusedLocationProviderApi It's also source of blue dot 这也是蓝点的来源

Use com.google.android.gms.location.FusedLocationProviderApi instead. 请改用com.google.android.gms.location.FusedLocationProviderApi。 FusedLocationProviderApi provides improved location finding and power usage and is used by the "My Location" blue dot. FusedLocationProviderApi提供了改进的位置查找和电源使用方式,并由“我的位置”蓝点使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM