abhishek-sankar / CoroNah

Corona? More like CoroNah. A side project attempting at contact tracing, and providing a better sense of security at future gatherings. Probably.
2 stars 0 forks source link

Recheck the location logs, for points where the LOCATION_COARSE came in and gave inaccurate location data #9

Open abhishek-sankar opened 4 years ago

abhishek-sankar commented 4 years ago

Get a window of 3 logs. Let it be A, B, C. If Distance(A, C) is low, and Distance(A, B) and Distance(C, B) are high, check timestamps to see if 2*Distance(A, B)/DeltaTimestamp(A, C) comes up to a high value. If yes, consider the chance of it being inaccurate.

abhishek-sankar commented 4 years ago

Presently, used the accuracy parameter to cut out most of the coarse location logs in the DB

abhishek-sankar commented 4 years ago

Add option to set accuracy? If so, how do we keep the app from aggregating incorrect data over a period of time, which may lead to wrong results when we implement thee contact tracing feature?