PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Specific features
  • Tracking management: low precision
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
Defines the WLanguage procedure that will be called when the user position changes.
Example
// -- Project initialization
geoTrackingProcedure(TrackingProcedure)
// Implement the TrackingProcedure procedure
PROCEDURE TrackingProcedure(mPosition is geoPosition)
// Send the position to the server
SendServer(mPosition)
Syntax
<Result> = geoTrackingProcedure(<Procedure Name>)
<Result>: Boolean
  • True if the system for tracking position is available,
  • False if the system for tracking position is not available. To find out the error details, use ErrorInfo.
<Procedure Name>: Character string (with or without quotes)
Name of WLanguage procedure called when the user position changes.
This procedure has the following format:
PROCEDURE <Procedure Name>(<Position> is geoPosition)
In this code, <Position> is a geoPosition variable corresponding to the current position of user.
This procedure must be a global procedure of application.
Remarks

Specific features

  • geoTrackingProcedure must be called in the initialization code of project. Indeed, the WLanguage procedure can be called just after the initialization, for a clock in background mode for example.
  • When receiving a position, the application is automatically restarted if it is in stand-by mode.
  • iPhone/iPad geoTrackingProcedure can be used in background mode. You should not access the interface or open windows in the WLanguage procedure because iOS does not allow the accesses to the interface when the application is in background.

Tracking management: low precision

Caution: The tracking is a low-precision tracking. The events are sent only if significant changes of position occur and at time intervals exceeding several minutes. For information, the sending conditions per platform are as follows:
  • iPhone/iPad The events regarding the change of position are not sent if the move is less than 500 meters or if the time interval is less than 5 minutes (December 2014).
  • Android The events regarding the change of position are sent with a time interval included between 30 seconds and 10 minutes according to the movement speed.
For a more precise tracking, you must use GPSFollowMovement. However, this function:
  • requires the application to be started,
  • Android requires the application to be in the foreground,
  • consumes more battery.
Related Examples:
WM Geo-localization Cross-platform examples (WINDEV Mobile): WM Geo-localization
[ + ] This example explains how to perform proximity searches with geolocalization:
- 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.
Components
Windows Mobile wp230device.dll
Minimum required version
  • Version 21
Comments
Click [Add] to post a comment