current_location()
could also return LatLng
's accuracy
#3112
Labels
enhancement
New features, or improvements to existing features.
good first issue
Is this your first time contributing? This could be a good place to start!
What is the problem or limitation you are having?
I'd like to know how accurate the GPS coordinates received from the OS are. They can often be really far from reality, and it would be helpful to know if this is the case.
Describe the solution you'd like
toga.hardware.location.Location.current_location()
could also return the horizontal and vertical accuracy of the recordedLatLng
.Describe alternatives you've considered
Writing a method myself that estimates the location accuracy by checking if the coordinates are stable (near each other) or "jumping around". But this would be an approximation of the approximation.
Additional context
Maybe it can be done like this?
Apple
The macOS and iOS versions of
toga_location()
should also returnhorizontalAccuracy
andverticalAccuracy
.Android
toga_location()
should also return the return values ofgetAccuracy()
(only ifhasAccuracy()
istrue
) andgetVerticalAccuracyMeters()
(only ifhasVerticalAccuracy()
istrue
).The text was updated successfully, but these errors were encountered: