0

I'm busy with an app for rapid recording of gps positions. I've integrated the records with Google Maps, and it is clear that a few records, though not all of them, are quite far off - up to 200m out measured using Google Earth. This is probably due to the GPS accuracy (maybe the GPS wasn't on for long enough, enough satellites, etc). I can work with this, but I would like to report on the accuracy.

My question is, is there a property that returns the GPS accuracy (perhaps as HDOP / EPE in meters) in the Delphi Firemonkey location sensor for Android, or can one access it in another way? From what I can see this may only be possible on iOS, but then I would like to know where many of the GPS apps (GPS Essentials, Locus Maps) do it? Is it a Firemonkey limitation? The locationsensor.accuracy looks like the value I'm after, but that is an input?

Any advice will be appreciated! All I want to do is set a threshold to warn the user of possible inaccurate readings so he/she can wait a few seconds for better accuracy.

I have tried changing the LocationSensor.accuracy property, but as stated, I want an output from the GPS, not an input.

  • When I have special needs on mobile platforms, I first look for the solution in the native programming language of the platform (e.g. Java). Then afterwards I look into the FMX implementation of those classes and see how I get that information out. Sometimes it requires you to wrap classes on your own. – Hans Feb 02 '23 at 10:49

0 Answers0