[SailfishDevel] GPS initially shows old location
jsiltane at gmail.com
Fri Jan 17 17:48:39 UTC 2014
I see the same behaviour. But won't the timestamp method in
QGeoPositionInfo help you? If the stamp differs a lot from current time,
then it is likely to be invalid in your case. At least that is what I see
in my application, the first update has the timestamp set to the time when
GPS was last used.
2014/1/17 <christopher.lamb at thurweb.ch>
> Hi all
> Is it possible that the Jolla GPS / GPS Software stack initially shows the
> last location acquired?
> This is the behaviour I am observing.
> At the moment I am sitting in an office building, which has poor GPS
> reception, yet my app immediately shows GPS Coordinates. By peaking I can
> see that the GPS icon is flashing, and thus no fix has been acquired.
> Having checked the GPS coordinates with Google Earth, the coords are
> actually for a location several kilometers away - in the middle of a set of
> railway tracks that I travel along to and from work. As I do lots of mobile
> development on the train, this is a plausible location for where the Jolla
> last got a fix.
> By comparison the same app running on my old Nokia N9 gets NaN from the
> GPS for longitude and lattitude until it gets a fix. I can then translate
> this into a user friendly text on the GUI "No valid position yet", and stop
> the user from proceeding further into the app until a true fix is acquired.
> If my understanding of the behaviour of the Jolla GPS is correct, is there
> anyway I can stop it giving me the old fix? It is important to my app that
> the coords shown are as accurate as possible, otherwise a recovery party /
> rescue helicopter may be mis-directed.
> SailfishOS.org Devel mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Devel