We may be able to make this part of the current GPS process rather than a separate process. Alternately the distance traveled since last GPS reading could be part of the GPS service, but the additional mode specific values could be a separate process.
We may be able to make this part of the current GPS process rather than a separate process. Alternately the distance traveled since last GPS reading could be part of the GPS service, but the additional mode specific values could be a separate process.
Haversine method (https://maker.pro/forums/threads/calculating-distance-using-gps.119820/)