PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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 20 and later
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
Windows 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.
Windows 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.
Windows This function is now available for the WINDEV applications in Windows.
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 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.
Component : wd250device.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Video GeoAzimuth
https://youtu.be/DCZp7mTO1kI

https://windevdesenvolvimento.blogspot.com/2019/01/dicas-1988-windev-mobile-dicas-108.html
amarildo
17 Jan. 2019