Reputation: 3043
I was wondering how accurate and reliable is the property speed
of a single sample of GeolocationCoordinates
API.
I want to take few samples of the current speed of an object (with GPS) and I am not sure if I should calculate the velocity myself (by the distance traveled between two time samples using altitude
, longitude
and altitude
), or just use the property speed
of a simple GeolocationCoordinates
sample.
How does the speed
property is being measured?
Which approach should I take?
Upvotes: 0
Views: 532
Reputation: 1233
The GeolocationCoordinates.speed read-only property is a double representing the velocity of the device in meters per second.
So I guess you don't have to calculate it manually.
TIP: For better accuracy, make sure the device is not in battery save mode, as it affects the result a lot.
Upvotes: 1