android - Filtering geolocation noise when receiving coordinated from device -
People
This problem was made in the application on another day, which will update the server on location changes. Unfortunately, at least on Android, location updates were sometimes very noisy, the difference between the old and the new space was less than the accuracy margin.
Therefore, regardless of filtering of these updates, provided for anyone.
Bearing count:
Distance between two integer latitudes angles roughly 110 Km
The distance between the two intersected angles is varies with latitude, and about 110 km * cos (lat).
.. The accuracy of 68% of Android's accuracy is used in the meter:
noise_margin = accuracy / 110000; If ignored (new_lat-old_lat & lt; noise_margin || new_lon-old_lon & lt; (cod (new_lat) * noise_margin); Otherwise, proceed with the update.
This may be taken to an additional 68% account, but it works properly.
It probably does not make a great formatting, so if someone can help with that, then it will be appreciated!
Comments
Post a Comment