GeolocatorAndroidConfiguration
GeolocatorAndroidConfiguration
#
Bases: GeolocatorConfiguration
Android specific settings.
accuracy
#
accuracy: GeolocatorPositionAccuracy = BEST
Defines the desired accuracy that should be used to determine the location data.
distance_filter
#
distance_filter: int = 0
The minimum distance (measured in meters) a device must move horizontally before an update event is generated.
Set to 0
when you want to be notified of all movements.
foreground_notification_config
#
foreground_notification_config: (
ForegroundNotificationConfiguration | None
) = None
interval_duration
#
interval_duration: DurationValue = field(
default_factory=lambda: Duration(milliseconds=5000)
)
The desired interval for active location updates.
time_limit
#
time_limit: DurationValue = None
Specifies a timeout interval.
For no time limit, set to None
.
use_msl_altitude
#
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.