I am saving gps sigal every 5-7 sec to database. How can I see how much distance I have traveled so far when I “sum” all the lat and lng values from database. And how can i see this resoults on daily basis?
For example. When I am tracking car on live preview I want to have a distance to be suming as live data from that day. And when I am looking for example a month kilometers for certain truck?
I was looking at THIS link, but I dont know how to make it dynamically to fill data as they have data already in the array.
Can you give me some ideas and examples if you implemented the same thing already.
Why to make the wheel if it is already made 🙂
Thank you
Alternately, you could use the Geometry Library of the Google Maps API to do the same thing: