Energy efficient GPS tracking

后端 未结 2 839
囚心锁ツ
囚心锁ツ 2021-02-06 08:20

I am making an application that requires user to send their GPS location to the server. I need it to be done for say every 10 seconds, which is heavy on the energy budget.

2条回答
  •  北荒
    北荒 (楼主)
    2021-02-06 09:10

    I would say build your own so you can get exactly what you want and avoid running extra code since you are concerned about the energy usage. I would do exactly what you suggested and use the GPS sparingly, maybe every 30 seconds or every minute to get a reference for your calculation and then use the compass and accelerometer in the interim.

提交回复
热议问题