Mosquito-Alert / Mosquito-Alert-Mobile-App

http://www.mosquitoalert.com
4 stars 3 forks source link

Background tracking takes 5 snapshots per day #97

Closed DigitalSeneca closed 7 months ago

DigitalSeneca commented 8 months ago

fixes #9

Description of changes

image

epou commented 8 months ago

We must ensure that we send masked lat/lon to our API.

Here: https://github.com/Mosquito-Alert/Mosquito-Alert-Mobile-App/blob/72ced5d1b88297fbbc4671f15908ab382789aa8e/lib/api/api.dart#L495-L496

Doing:

'masked_lat' = (lat / Utils.maskCoordsValue).floor() * Utils.maskCoordsValue;
'masked_lon' = (lon / Utils.maskCoordsValue).floor() * Utils.maskCoordsValue;