2

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?

enter image description here

Daryn
  • 770
  • 9
  • 19

2 Answers2

2

Location.getAccuracy() - the value of the radius of blue circle.

Daryn
  • 770
  • 9
  • 19
0

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.

blackkara
  • 4,900
  • 4
  • 28
  • 58