I am trying to send gps data to a PHP webservice that will then update a mysql database. I would like to be able to update the database once a second. The phone will be plugged in so battery usage is not a concern. Is once per second reasonable and will I be able to achieve that many updates over an extended period of time?
Also, is there a best way to do this? Any tricks that will enable me to do this would be appreciated. One thing I was thinking of doing was to capture 5 gps data points (I'm assuming that an Android phone can get gps data at a rate of once per second) and then every five seconds sending the bundle of 5 data points to the web service. I will also try just sending single data points every second to see if it will work.
Do either of these methods seem like a good approach? Is there a better way?
I'm currently using the Android Asynchronous Http Client Library written by James Smith and Google Play Services fused location provider.