I was working on an Android project to track my walk. Is there a way to get accuracy of less than 10 meters on all phones

I am working on an Android project to track my walk. Is there a way to get accuracy of less than 10 meters on all phones.

Different phones return different levels of accuracy. Therefore, I’m not sure what points I should consider in order to draw a path. If I consider low accuracy, losing track, if I consider high precision zigzag path above buildings.

+5
source share
1 answer

Use Melted Location

With a smooth location, you don’t need to ask for the best location provider. If you want high accuracy, you only set it to a location request.

setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY); 

for more FusedLocationApi see here FusedLoactionApi

0
source

Source: https://habr.com/ru/post/1261130/


All Articles