I am in the middle of a vehicle tracking project where I have to calculate the distance traveled by the vehicle in a given amount of time.
Data I am getting:
Speed : 30.2 km/hr 12.7 km/hr 15 km/hr 21.8 km/hr Time : 11:00:00 11:00:22 11:00:45 11:01:10
That is I am getting the speed of the vehicle every 20-25 seconds. So what is the best way to calculate the distance traveled by the vehicle during this whole duration? Is taking the median of two speeds the best way to calculate the average speed here?