ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Geolocation functions
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
Returns the distance between the two locations. This distance is expressed in meters by default.
Example
pos1 is géoPosition
pos1.Latitude = 1.442951
pos1.Longitude = 43.604363
 
pos2 is géoPosition
pos2.Latitude = 2.505874
pos2.Longitude = 50.458744
 
InfoBuild("The distance between the two locations is %1 meters.", géoDistance(pos1, pos2))
Syntax
<Result> = geoDistance(<Location 1> , <Location 2> [, <Unit>])
<Result>: Real
Approximate distance between the two locations. This distance is expressed in the selected unit (in meters by default).
<Location 1>: geoPosition variable
Name of the geoPosition variable corresponding to the first location to compare.
<Location 2>: geoPosition variable
Name of the geoPosition variable corresponding to the second location to compare.
<Unit>: Integer constant
Unit in which the distance must be returned:
geoKilometerDistance in kilometers.
geoMeter
(default value)
Distance in meters.
geoMileDistance in international earth miles.
Remarks
The calculation of the distance between the two locations is based on the WGS84 ellipsoid (Worldwide Geodesic System, 1984).
Business / UI classification: Business Logic
Component: wd290device.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Exemplo
https://help.windev.com/en-US/?1000019207&name=gpsstatus_function

https://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/3701-trabalhando-com-gps/read.awp
Boller
13 Mar. 2021

Last update: 05/26/2022

Send a report | Local help