GeolocatorAndroidConfiguration
Inherits: GeolocatorConfiguration
Android specific settings.
Properties
-
foreground_notification_config(ForegroundNotificationConfiguration | None) – -
interval_duration(DurationValue) –The desired interval for active location updates.
-
use_msl_altitude(bool) –Whether altitude should be calculated as MSL (EGM2008) from NMEA messages
Properties#
foreground_notification_config
class-attribute
instance-attribute
#
foreground_notification_config: (
ForegroundNotificationConfiguration | None
) = None
interval_duration
class-attribute
instance-attribute
#
interval_duration: DurationValue = field(
default_factory=lambda: Duration(milliseconds=5000)
)
The desired interval for active location updates.
use_msl_altitude
class-attribute
instance-attribute
#
use_msl_altitude: bool = False
Whether 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.