PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Returns the distance between the two positions. This distance is expressed in meters by default.
Versions 17 and later
WINDEV Mobile This function is now available for the Windows Phone applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
WINDEV Mobile This function is now available for the Windows Phone applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
WINDEV Mobile This function is now available for the Windows Phone applications.
iPhone/iPad This function is now available for the 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 20 and later
WEBDEV - Server codeWindows This function is now available in WEBDEV Server.
WINDEVWindows This function is now available for the WINDEV applications in Windows.
New in version 20
WEBDEV - Server codeWindows This function is now available in WEBDEV Server.
WINDEVWindows This function is now available for the WINDEV applications in Windows.
WEBDEV - Server codeWindows This function is now available in WEBDEV Server.
WINDEVWindows This function is now available for the WINDEV applications in Windows.
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
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 positions is equal to %1 meters.", geoDistance(pos1, pos2))
Syntax
<Result> = geoDistance(<Position 1> , <Position 2> [, <Unit>])
<Result>: Real
Approximate distance between the two positions. This distance is expressed in the selected unit (in meters by default).
<Position 1>: geoPosition variable
Name of the geoPosition variable corresponding to the first position to compare.
<Position 2>: geoPosition variable
Name of the geoPosition variable corresponding to the second position to compare.
<Unit>: Integer constant
Versions 16 and later
Unit in which the distance must be returned:
geoKilometerDistance in kilometers.
geoMeter
(default value)
Distance in meters.
geoMileDistance in international earth miles.
New in version 16
Unit in which the distance must be returned:
geoKilometerDistance in kilometers.
geoMeter
(default value)
Distance in meters.
geoMileDistance in international earth miles.
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 positions is based on the WGS84 ellipsoid (Worldwide Geodesic System, 1984).
Components
WINDEVWEBDEV - Server code wd230device.dll
Android wd230android.jar
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment