useMSLAltitude property

bool useMSLAltitude
final

Set to true if altitude should be calculated as MSL (EGM2008) from NMEA messages and reported as the altitude instead of using the geoidal height (WSG84). Setting this property true will help to align Android altitude to that of iOS which uses MSL.

If the NMEA message is empty then the altitude reported will still be the standard WSG84 altitude from the GPS receiver.

MSL Altitude is only available starting from Android N and not all devices support NMEA message returning $GPGGA sequences.

This property only works with position stream updates and has no effect when getting the current position or last known position.

Defaults to false

Implementation

final bool useMSLAltitude;