PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Special cases
  • Browsers allowing the geolocation
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Retrieves the information about the last known location of the device.
Versions 16 and later
WEBDEV - Browser code This function is now available in Browser code.
New in version 16
WEBDEV - Browser code This function is now available in Browser code.
WEBDEV - Browser code This function is now available in Browser code.
Versions 22 and later
Windows This function is now available for WINDEV applications.
New in version 22
Windows This function is now available for WINDEV applications.
Windows This function is now available for WINDEV applications.
Example
pos is géoPosition
pos = GPSLastPosition()
IF ErrorOccurred = False THEN
Info(" Latitude: " + pos.Latitude)  
Info(" Longitude: " + pos.Longitude)  
END
Syntax
<Result> = GPSLastPosition()
<Result>: geoPosition variable
Name of the Variable type geoPosition. This variable contains the information about the last known device position. To find out whether the position failed to be retrieved, use the ErrorOccurred variable.
Remarks

Special cases

  • To find out if the Speed, Accuracy, Direction or Altitude properties of an Variable of type geoPosition were filled in when the position was retrieved, use the SpeedValid, AccuracyValid, DirectionValid and AltitudeValid properties.
  • The positioning information that was retrieved corresponds to the last known device location: therefore, they may not correspond to the current device location if the device was moved while the GPS signal was not valid for example.
WEBDEV - Browser code

Browsers allowing the geolocation

Caution: Geolocation is only available on certain modern browsers:
  • FireFox from version 3.5,
  • Chrome from version 5.0.342.1,
  • Opera from version 10.6,
  • Safari from version 5.0.
During the call to a geolocation function, the browser requests a location authorization.
Component: wd270java.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment