Reputation: 3229
I am developing a Windows Phone 7 app and I want to see how fast the user is going.
Right now, I am storing the last 2 locations (and timestamps) that were recorded. I am finding the distance between the 2 locations by using the method suggested here. Then I am finding the difference in time (timestamp2 - timestamp1) and calculating the speed using the formula speed = (distance/time).
Am I using the right method or should I use the GeoCoordinate.Speed property?
Upvotes: 4
Views: 1724
Reputation: 7243
I don't see why shouldn't you just use the GeoCoordinate.Speed property!
The GeoCoordinate class already gives you the speed and course (heading) of the movement, so why not just use it?
Upvotes: 4