I am working on a project that requires me to store the history of a GPS device that sends its location every second. The application has to save and ultimately show the tracked route while the GPS device is active.
My main concern is saving all this data. Having multiple devices and saving all their positions throughout time seems like a difficult task.
How would I go about storing and retrieving the locations. Storing all this in a database doesn't sound logical to me. I would appreciate any help.
Thanks in advance
It would make sense to only store a location if it's changed wrt the previous measurement. GPS devices are not on the move constantly after all.
You'd also have to think about things as:
Basically - you'd have to look at all the requirements that this data will be used for, before stomping it all in a box...
Do you have a requirement to create reports on this routing data? If yes then have to persist data.
I can think of a couple of options to save this data.
NoSQL databases like db40. Key/Value Storage more appropriate to use here.
Frequency - Initially I will opt-in to store this data for every half mile. i.e to calculate the distance between first recorded location to the second location
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With