Welcome! Log In Create A New Profile

Advanced

[WM26] - GPS

Posted by JP 
JP
[WM26] - GPS
May 10, 2021 07:49PM
Hi All

Trying to use the GPS features in WinDev Mobile 26. But without moving the phone I get different GPS longitude and latitude every time I request the data. Here is sample code i have in a button


geoGEO_Position is geoPosition
VariableReset( geoGEO_Position )
GPSInitParameter( gpsSatellite , gpsEnergyHigh + gpsPrecisionHigh )
geoGEO_Position = GPSGetPosition()
Info( geoGEO_Position..Latitude + " - " + geoGEO_Position..Longitude )


Every time I press the button the longitude and latitude changes slighlty and so the distance calculation changes from the prior position to the current position. But the phone is standing still on the table ... why does the longitude and latitude change on each call ?
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: