|
|
|
|
|
- Special cases
- Required permissions
- Required application feature
GPSInfo (Function) In french: GPSInfo Returns the information about the location provider used by the application for geolocation functions. 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. | | | gpsAltitude | Altitude of available device. | <Result> will correspond to:- True if the location provider can be used to define the device altitude,
- False otherwise or if no location provider was found.
| gpsDirection | Direction of the move performed by the device. | <Result> will correspond to:- True if the location provider can be used to define the direction of the move performed by the device,
- False otherwise or if no location provider was found.
| gpsEnergy | Energy 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.
| gpsPrecision | Precision of the position measurement performed by the provider. | <Result> will correspond to:- gpsPrecisionHigh: the position is calculated with high accuracy.
- gpsPrecisionLow: the position is calculated with low accuracy.
| gpsSpeed | Speed of the move performed by the device. | <Result> will correspond to:- True if the location provider can be used to define the speed of the move performed by the device,
- False otherwise or if no location provider was found.
| gpsType | Type of location provider. | <Result> will correspond to:- gpsSatellite: location provider via the network of GPS satellites.
- gpsNetwork: location provider via the network of mobile antennas or Wi-Fi.
- 0 if the type of location provider was not defined.
|
Remarks Special cases - It is recommended to initialize the location provider settings with GPSInitParameter before retrieving information from that provider.
- The activation status of the location provider is returned by GPSStatus.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|