David Stanley <
da...@dbsconsult.co.uk> writes:
> I know it is geoid, but GPS Test writes it as GeoID. I just dug out my old
> phone which is a Xperia SP with Android 4.3. it had OSMAnd 2.9.3 on it.
> That showed the altitude as over 100m. meanwhile GPS test showed the
> correct altitude, but this time with 'Use geoid' enabled. Upgrading OSMAnd
> to 3.04 did not change the behaviour. So it looks like OSMAnd is getting
> it wrong on both. It would be good if using geoid could be an option
> somewhere in OSMAnd.
I suggest that you install SatStat, which reports the value as received
from the API. (I think it's not in the Google store, but it is in
f-droid and you can build it yourself). It looks like geoid height in
the UK is about 50m. It's -29m around me (Boston). But, this is
probably not a gpstest issue so that may not be useful.
So if your orthometric height is 60m, your ellipsoidal height is around
110m. What value do you see in gpstest with geoid corrections off?
Around me, I see ~correct ellipsoidal height values in satstat (~30m
less than orthometric height), and also in osmand without the geoid
file. WIth the geoid file, osmand reports ~30m higher than satstat, and
thus approximately the correct orthometric height (meaning what people
mean when they say ASL). This is with osmand 3.0.3. I have not noticed
any changes from 2.8.x to 3, or indeed with any previous versions.
A very important thing is that the Android specification says that the
system returns meters above the WGS84 ellipsoid:
https://developer.android.com/reference/android/location/Location#getAltitude()
So I wonder if your phone is applying a geoid correction to what is
returned from getAltitude. If so, that seems wrong, and you could file
a bug report with the phone vendor :-) Or, OSMAnd could work around
broken ROMs by having a quirk list of OS/hardware somehow and on those,
assume the geoid calculation has already been done.
Or perhaps you could just uninstall the geoid file.
(OSMAnd itself should somehow label altitude with h or H, so that the
user knows which is shown, but probably few understand this and having
the geoid file loaded is the right approach. So I'll suggest adding
'h' in altitude if the geoid correction is not applied.)
Greg