PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV Mobile 2024 → GPS - Info - Informacoes
GPS - Info - Informacoes
Started by adrianoboller, Nov., 24 2014 12:56 PM - No answer
Registered member
3,659 messages
Popularité : +175 (223 votes)
Posted on November, 24 2014 - 12:56 PM
Procedure GPS_Informacoes(LOCAL WindowSN)

sRetorno is string = ""

IF GPSStatus() = gpsEnabled OR GPSStatus() = gpsAvailable THEN

sAltitude is string = GPSInfo(gpsAltitude)

sDirecao is string = GPSInfo(gpsDirection)

sEnergia is string = GPSInfo(gpsEnergy)

sPrecisao is string = GPSInfo(gpsPrecision)

sTipo is string = GPSInfo(gpsType)

sVelocidade is string = GPSInfo(gpsSpeed)

sRetorno = sAltitude +", "+ sDirecao +", "+ sEnergia +", "+ sPrecisao +", "+ sTipo +", "+ sVelocidade

IF WindowSN = "S" THEN
Info(sRetorno)
END

ELSE IF GPSStatus() = gpsDisabled THEN

Info("GPS Desabilitado!")

ELSE IFGPSStatus() = gpsOffService OR GPSStatus() = gpsUnavailable OR GPSStatus() = gpsError THEN

Info("Região sem serviço de GPS",ErrorInfo())

END

RESULT(sRetorno)