Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

[WM21] I can't get my coordinates

$
0
0
Good afternoon

Has anyone done anything with geolocation?
I can't get my coordinates, this is my code.

//-----------------------------------------------------------------------------------------------------//

GPSInitParameter(gpsAuto,gpsAltitude+gpsDirection+gpsSpeed+gpsPrecisionHigh+gpsEnergyMedium)

MyPosition is geoPosition
MyPosition = GPSGetPosition()
IF NOT ErrorOccurred THEN
Info("Error")
END

MyAddress is Address
MyAddress = geoGetAddress(MyPosition..Latitude + "," + MyPosition..Longitude)
IF NOT ErrorOccurred = False THEN
Info("Error")
END

Info(MyAddress..City + " - " + MyAddress..ZipCode)

//-----------------------------------------------------------------------------------------------------//

I'm working on Android, I have the key provided by google for the application.
The geoGetAddress works if I give you the coordinates directly

Thanks in advance.

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>