PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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 location 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 iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for 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 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 geoPosition
pos1.Latitude = 1.442951
pos1.Longitude = 43.604363
 
pos2 is geoPosition
pos2 = GPSGetPosition()
 
InfoBuild("The direction is %1°", geoAzimuth(pos1, pos2))
pos1 is geoPosition
pos1.Latitude = 1.442951
pos1.Longitude = 43.604363
 
pos2 is geoPosition
pos2.Latitude = 2.505874
pos2.Longitude = 50.458744
 
InfoBuild("The direction is %1°", geoAzimuth(pos1, pos2))
Syntax
<Result> = geoAzimuth(<Location 1> , <Location 2>)
<Result>: Real
Direction (in degrees) in relation to the geographical North represented by <Location 2> in relation to <Location 1>, taking the shortest way between the two.
<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.
Remarks
  • If <Location 2> is located to the South of <Location 1>, geoAzimuth returns 180.
  • The calculation of the direction between the two locations is based on the WGS84 ellipsoid.
Business / UI classification: Business Logic
Component: wd260device.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Exemplo com codigo fonte
https://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/3701-trabalhando-com-gps/read.awp
Boller
13 Mar. 2021
Video GeoAzimuth
https://youtu.be/DCZp7mTO1kI

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