PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Special cases
  • Required permissions
  • Required application feature
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns the information about the localization provider used by the application for the geo-localization functions.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Android Widget This function is now available in Android Widget mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 22 and later
WINDEVWindows This function is now available for the WINDEV applications.
New in version 22
WINDEVWindows This function is now available for the WINDEV applications.
WINDEVWindows This function is now available for the WINDEV applications.
Example
AndroidAndroid Widget Universal Windows 10 App
// Check the type of provider used
IF GPSInfo(gpsType) = gpsSatellite THEN
        Info("The geo-localization of the phone uses the GPS system.")
END
IF GPSInfo(gpsSpeed) = False THEN
Error("The speed regarding the move of the phone cannot be defined.")
END
Syntax
<Result> = GPSInfo(<Information>)
<Result>: Variant
Requested information according to <Information>.
<Information>: Integer constant
Requested type of information.
gpsAltitudeAltitude of available device.<Result> will correspond to:
  • True if the localization provider can be used to define the device altitude,
  • False otherwise or if no localization provider was found.
gpsDirectionDirection of the move performed by the device.<Result> will correspond to:
  • True if the localization provider can be used to define the direction of the move performed by the device,
  • False otherwise or if no localization provider was found.
gpsEnergyEnergy consumption required by the provider.<Result> will correspond to:
  • gpsEnergyLow: The provider must require a low quantity of energy.
  • gpsEnergyMedium: The provider can require a medium quantity of energy.
  • gpsEnergyHigh: The provider can require a high quantity of energy.
gpsPrecisionPrecision of the position measurement performed by the provider.<Result> will correspond to:
  • gpsPrecisionHigh: the position is calculated with a high precision.
  • gpsPrecisionLow: the position is calculated with a low precision.
gpsTypeType of localization provider.<Result> will correspond to:
  • gpsSatellite: localization provider via the network of GPS satellites.
  • gpsNetwork: localization provider via the network of mobile antennas or Wi-Fi.
  • 0 if the type of localization provider was not defined.
WINDEV This constant is not available.
gpsSpeedSpeed of the move performed by the device.<Result> will correspond to:
  • True if the localization provider can be used to define the speed of the move performed by the device,
  • False otherwise or if no localization provider was found.
Remarks

Special cases

  • We advise you to initialize the parameters of the localization provider with GPSInitParameter before retrieving the information of this provider.
  • The activation status of the localization provider is returned by GPSStatus.
AndroidAndroid Widget

Required permissions

The call to this function modifies the permissions required by the application.
Required permission: ACCESS_FINE_LOCATION.
Versions 21 and later
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of an application feature in the wizard for generating the application.
Required feature: Geo-localization
This feature allows the applications to access the geo-localization features found on the device or on the computer.
New in version 21
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of an application feature in the wizard for generating the application.
Required feature: Geo-localization
This feature allows the applications to access the geo-localization features found on the device or on the computer.
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of an application feature in the wizard for generating the application.
Required feature: Geo-localization
This feature allows the applications to access the geo-localization features found on the device or on the computer.
Components
WINDEV wd230java.dll
Android wd230android.jar
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment