PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Retrieved properties
  • Notes
  • Operating mode in iPhone/iPad
  • 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
Asks to be regularly notified about the current device position.
Versions 17 and later
Universal Windows 10 App This function is now available for Windows Phone applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
Universal Windows 10 App This function is now available for Windows Phone applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Universal Windows 10 App This function is now available for Windows Phone applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
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.
Example
// Branches a procedure to receive the device position at regular intervals
GPSFollowMovement(MovementProc)
// Procedure
PROCEDURE MovementProc(pos is geoPosition)
 
Info(" Latitude: " + pos..Latitude)  
Info(" Longitude: " + pos..Longitude)
Syntax
AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App

Enabling the notification mechanism (in a mobile) Hide the details

GPSFollowMovement(<Procedure Name> [, <Timeout> [, <Distance>]])
<Procedure Name>: Character string (with or without quotes)
Name of WLanguage procedure called at each notification.
This procedure has the following format:
PROCEDURE <Procedure Name>(<Position>)
<Position> is a geoPosition variable containing information about the device position at the time of notification.
<Timeout>: Optional integer or optional Duration
Minimum timeout (in hundredths of a second) between two notifications. If this parameter is not specified, the minimum time-out will be set to 60 seconds.
Remark: This parameter can correspond to:
  • an integer corresponding to the number of hundredths of a second,
  • a Duration variable,
  • Versions 23 and later
    the direct indication of duration (1 s or 10 ms for example).
    New in version 23
    the direct indication of duration (1 s or 10 ms for example).
    the direct indication of duration (1 s or 10 ms for example).
Universal Windows 10 App This parameter is ignored.
<Distance>: Optional real
Minimum distance (in meters) between two notifications.
If this parameter is not specified, the minimum distance will be set to 5 meters.

Disabling the notification mechanism

GPSFollowMovement()
Remarks
AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App

Retrieved properties

AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App

Notes

  • Geolocation functions can consume a lot of resources on the device (battery, bandwidth, etc.). Therefore, we advise you not de define very small values for the minimum time-out and for the minimum distance between two notifications.
  • Versions 21 and later
    AndroidiPhone/iPad You have the ability to track geolocation in the background without consuming resources via geoTrackingEnable, geoTrackingDisable, geoTrackingStatus and geoTrackingProcedure. See Location tracking for more details.
    New in version 21
    AndroidiPhone/iPad You have the ability to track geolocation in the background without consuming resources via geoTrackingEnable, geoTrackingDisable, geoTrackingStatus and geoTrackingProcedure. See Location tracking for more details.
    AndroidiPhone/iPad You have the ability to track geolocation in the background without consuming resources via geoTrackingEnable, geoTrackingDisable, geoTrackingStatus and geoTrackingProcedure. See Location tracking for more details.
  • Versions 21 and later
    iPhone/iPad When generating the application, you can allow the call to GPSFollowMovement when the application is in background ("Allow GPSFollowMovement to be called when the application is in background" option in the "Configuration" step of wizard). In this case, the geolocation will continue when the application runs in the background or when the device is in standby mode. See Generating an iOS application for more details.
    New in version 21
    iPhone/iPad When generating the application, you can allow the call to GPSFollowMovement when the application is in background ("Allow GPSFollowMovement to be called when the application is in background" option in the "Configuration" step of wizard). In this case, the geolocation will continue when the application runs in the background or when the device is in standby mode. See Generating an iOS application for more details.
    iPhone/iPad When generating the application, you can allow the call to GPSFollowMovement when the application is in background ("Allow GPSFollowMovement to be called when the application is in background" option in the "Configuration" step of wizard). In this case, the geolocation will continue when the application runs in the background or when the device is in standby mode. See Generating an iOS application for more details.
    iPhone/iPad When generating the application, you have the ability to allow the call to GPSFollowMovement when the application is in background ("Allow GPSFollowMovement and BeaconDetectPrecise to be called when the application is in background" in the "Configuration" step of wizard). In this case, the geolocation will continue when the application runs in the background or when the device is in standby mode. See Generating an iOS application for more details.
  • To stop receiving notifications, call GPSFollowMovement without parameter or call GPSEnd.
Versions 17 and later
iPhone/iPad

Operating mode in iPhone/iPad

During the first startup of a GPS function, the system asks the user for the authorization to perform a geo-localization. If the user refuses, all the GPS functions used in the rest of the application will fail (fatal error).
To re-allow the use of GPS for this application, the system configuration of the application must be modified.
New in version 17
iPhone/iPad

Operating mode in iPhone/iPad

During the first startup of a GPS function, the system asks the user for the authorization to perform a geo-localization. If the user refuses, all the GPS functions used in the rest of the application will fail (fatal error).
To re-allow the use of GPS for this application, the system configuration of the application must be modified.
iPhone/iPad

Operating mode in iPhone/iPad

During the first startup of a GPS function, the system asks the user for the authorization to perform a geo-localization. If the user refuses, all the GPS functions used in the rest of the application will fail (fatal error).
To re-allow the use of GPS for this application, the system configuration of the application must be modified.
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: Geolocation
This feature allows the applications to access the geolocation 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: Geolocation
This feature allows the applications to access the geolocation 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: Geolocation
This feature allows the applications to access the geolocation features found on the device or on the computer.
Related Examples:
Android GPS 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
WM Sports Cross-platform examples (WINDEV Mobile): WM Sports
[ + ] This example is a sport application used to save your performances.
The application calculates the distance, the time, the average speed and the number of calories spent according to the sport.
The run is displayed on a map control via markers and an itinerary.

The example also includes a server part used to synchronize the user data.
This webservice is available in the WEBDEV "WW_Sports" example.
Component : wd250java.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
GPS Functions
https://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/519-busca-endereco-rota-endereco-das-coordendas-523/read.awp?hl=enderecodascoordenadas

https://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/2875-informatica-exemplo-google-maps-com-json-retornando-distancia/read.awp?lastview
BOLLER
10 Nov. 2018