简体   繁体   中英

Google Map Accuracy Radius

I use Google Maps for my project. 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. It was receiving location and you were able get accuracy but it's deprecated.

Google suggests FusedLocationProviderApi instead. It's also source of blue dot

Use com.google.android.gms.location.FusedLocationProviderApi instead. FusedLocationProviderApi provides improved location finding and power usage and is used by the "My Location" blue dot.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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