PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Operating mode in iPhone/iPad
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The following functions are used to handle geolocation data and to control GPS devices:
geoAzimuthReturns the direction represented by a location in relation to another one.
geoDistanceReturns the distance between the two locations. This distance is expressed in meters by default.
geoGetAddressRetrieves an address or a list of addresses corresponding to the description of a geographic location.
geoGetAreaRetrieves the coordinates of the geographic area that corresponds to a given description.
geoRunAppStarts the device's native maps application to display:
  • a specific geographical location,
  • a route between two locations.
geoTrackingDisableDisables the tracking of user positions for a WINDEV Mobile application.
geoTrackingEnableEnables the management of location tracking in a WINDEV Mobile application.
geoTrackingProcedureDefines the WLanguage procedure that will be called when the location of the user changes.
geoTrackingStatusRetrieves the status of the system for position tracking.
GPSDetectPositionAsks to be notified when the device gets close to a given location.
GPSEndIndicates the end of the use of geolocation functions.
GPSFollowMovementRequests to be notified periodically of the device's current location.
GPSGetPositionRetrieves information about the current device position.
GPSInfoReturns the information about the location provider used by the application for geolocation functions.
GPSInitParameterInitializes the parameters of geolocation WLanguage functions and finds a location provider.
GPSLastPositionRetrieves the information about the last known device position.
GPSStatusRetrieves the activation status of the geolocation provider or asks to be notified when the status changes.
GPSStopDetectionStops the location detection triggered by GPSDetectPosition.
The following advanced types are used to handle geolocation data:
AddressThe Address type is used to manipulate the address of a place or person.
geoPositionThe geoPosition type is used to handle geographic positions via WLanguage geolocation functions.
iPhone/iPadIOS WidgetMac Catalyst

Operating mode in iPhone/iPad

When a GPS function is first run, the system requests geolocation permission from the user. 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.
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 Geolocation 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.
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