|
- Special cases
- Operating mode in iPhone/iPad
- Required permissions
- Required application feature
GPSInitParameter (Function) In french: GPSInitParamètre Syntax
GPSInitParameter(<Provider to find> [, <Options>])
<Provider to find>: Integer constant Type of requested location provider. | | gpsAuto | Defines the most suitable provider according to the criteria specified in the <Options> parameter. | gpsNetwork | Calculates the position by using the network of mobile or Wi-Fi antennas. | gpsSatellite | Calculates the position by using the network of GPS satellites. |
Versions 17 and later New in version 17 <Options>: Optional combination of Integer constants Selection criteria for the location provider. The possible values are: | | gpsAltitude | Indicates whether the provider must be able to specify the altitude of the device. | gpsDirection | Indicates whether the provider must be able to specify the move direction of the device. | gpsEnergyHigh | Indicates whether the provider can require a high quantity of energy. | gpsEnergyLow | Indicates whether the provider must require a low quantity of energy. | gpsEnergyMedium | Indicates whether the provider can require a medium quantity of energy. | gpsPrecisionHigh | The position is calculated with a high precision. | gpsPrecisionLow | The position is calculated with a low precision. | gpsSpeed | Indicates whether the provider must be able to specify the moving speed. |
Remarks: - The gpsPrecisionxx constants are exclusive between themselves.
- The gpsEnergyxx constants are exclusive between themselves.
- No constant is required. If no constant is specified, the function will search for a location provider that consumes the least amount of energy with any precision and without any specific characteristics.
Remarks Special cases  You can find out the availability of a geolocation provider by using GPSStatus.  To find out the characteristics of the location provider initialized by function GPSInitParameter, use function GPSInfo. - Depending on the type of device on which the application is started, there may be no provider corresponding to all the specified criteria (no GPS chip, no Internet access, ...).
If no providers correspond the specified criteria, these criteria are ignored one after the other until a valid provider is obtained according to the following order: energy consumption, precision, direction, speed and altitude. - The geolocation functions can, according to the selected setting and to the call frequency, consume a lot of resources on the device (battery, bandwidth, etc.). When geolocation functions are no longer used by the application, you must call GPSEnd.
- If a geolocation function is called while the parameters have not been defined by GPSInitParameter, the application will attempt to use the location via GPS first then the one via the network of mobile antennas if the GPS system is not available.
- GPS functions cannot be used to perform an indoor geolocation: the positioning cannot be performed via Wi-Fi hotspots only.
Versions 17 and later New in version 17 Versions 21 and later New in version 21
Related Examples:
|
Cross-platform examples (WINDEV Mobile): WM Geolocation
[ + ] This example explains how to perform proximity searches with geolocation : - search around me - search in a city, at a given address, or close to a specific address. The results are displayed in a looper and in a map with markers.
|
|
Android (WINDEV Mobile): Android GPS
[ + ] This example presents the use of the GPS functions of WLanguage in an Android application. It is used to retrieve at regular interval: - The latitude - The longitude - The altitude - The speed - The direction
|
Component : wd260java.dll
This page is also available for…
|
|
|
| |
| Click [Add] to post a comment |
|
| |
|
| |
| |
| |
| |
| |
| |
| | |
| |