I want to get the distance that the device moved between the start location and the end location. I'm getting the speed and the time user spent on the journey using GPSManager and GPSCallback.
Is there any way to get the accurate distance between start and end locations? Here user doesn't know what the end location is. It is the location where the user stops the journey.
CodePudding user response:
If you have latitude and longitude values of both start and end locations (I assume you have got), this answer which I have used before works well.