Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inaccurate geolocation coordinates #2047

Open
gpsaliola opened this issue Sep 24, 2022 · 0 comments
Open

Inaccurate geolocation coordinates #2047

gpsaliola opened this issue Sep 24, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@gpsaliola
Copy link

I written a little app that writes a GPX file contains a track composed with returned locations.
The app is based on the app described in https://github.com/jfversluis/XFBackgroundLocationSample.
The coordinates are not very precise, there are jumps in places where they shouldn't be.
The test.gpx file is the file saved after the test and the test.jpg image illustrates the track on a map (the red path is the real one, the blue one is the recorded one).
How can this behavior be improved?
Unfortunately, this is not acceptable in a track recording app.

Steps to Reproduce

I've attached the app.

  1. Give permissions to the app:
  • App - Location => Allow all the time
  • App - Location => Use precise location
  • App - Battery => Unrestricted
  • Battery => Power saving off
  1. After launch tap on Start/stop button, walk a couple of blocks and tap the button again.
  2. Go in Documents directory. You can find a file named test.gpx.
  3. Open the gpx file in a map application/web site and look at the track and compare it with the traveled track.

Expected Behavior

The recorded track and the track traveled should be similar

Actual Behavior

The recorded track contains many inaccurate points

  • Version with issue: Xamarin.Essentials 1.7.3
  • Platform Target Frameworks:
    • Android: Target framework 12.1
  • Affected Devices: I've do the test with a Samsung A53 with Android version 12

Attachments

test.zip

XFBackgroundLocationSample-modified.zip

@gpsaliola gpsaliola added the bug Something isn't working label Sep 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant