Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant