There is a requirement to find the real-time distance covered by Google maps. This should be calculated by the phone itself. When I mean real time, I mean, for example, if a user travels to point A, the user can get to the point in different ways, I want to calculate the total distance that the user traveled in real time, and not just assume and calculate the distance between two points (which will not give the correct answer).
I was looking for this problem but could not find any method.
I personally thought about saving the longitude and latitude on the phone in the list, and after the user reaches the destination, the distance will be highlighted using these points. However, this means that I must determine the interval in which these points are stored (every 1 min or so), which would mean that I would place the location points in the list, even if the user was actually still at the same a path that is completely unnecessary. If only someone knows how to save points at the right time or some other solution
I am more or less focused on this issue, any help is really appreciated
Mobile Platform - Android
Thanks, MilindaD
source share