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 direction represented by a position in relation to another one.
This direction is expressed in angle format (clockwise in degrees) by taking the geographical North as reference.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad 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 for the WEBDEV sites in Windows.
WINDEVWindows This function is now available for the WINDEV applications in Windows.
New in version 20
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
WINDEVWindows This function is now available for the WINDEV applications in Windows.
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
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
AndroidAndroid Widget iPhone/iPad
pos1 is géoPosition
pos1..Latitude = 1.442951
pos1..Longitude = 43.604363

pos2 is géoPosition
pos2 = GPSGetPosition()

InfoBuild("The direction is %1°", geoAzimuth(pos1, pos2))
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 direction is %1°", geoAzimuth(pos1, pos2))
Syntax
<Result> = geoAzimuth(<Position 1> , <Position 2>)
<Result>: Real
Direction (in degrees) in relation to the geographical North represented by <Position2> in relation to <Position 1> by taking the shortest way between the two positions.
<Position 1>: geoPosition variable
Name of geoPosition variable corresponding to the first position to compare.
<Position 2>: geoPosition variable
Name of geoPosition variable corresponding to the second position to compare.
Remarks
  • If <Position 2> is located South of <Position 1>, the execution of the following code returns 180:
    geoAzimuth(Position1, Position2)
  • The calculation of the direction between the two positions is based on the WGS84 ellipsoid.
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