Geolocation - Android location contains random altitude values

De openkb
Aller à : Navigation, rechercher

Sommaire

Questions

I m working on a GPS tracker app. Part of information I gather is user elevation during trip.

And I can t understand why do I get some random values for altitude. I test on Samsung S3 in a plain area without any mountains. And values I get for altitude vary from -30 to +60 meters .

I read something about altitude accuracy which can be +/- 15 meters. But in my case, the results I get are way above that threshold

Does anyone have any idea how to get accurate altitude? I m not interested in querying any third-party API for that (like Google geocoder).

Thanks

Answers

You cannot, altitude is not accurate on GPS, and very jumping.
You only can average over the last x seconds, asuming that the device does not change its real altitude fast.

You further can read the vertical accuracy, and ignore altituded exceeding a specific accuracy threshold (on ios I would use 30m, as vertical accuracy threshold)

Source

License : cc by-sa 3.0

http://stackoverflow.com/questions/16427080/android-location-contains-random-altitude-values

Related

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Outils