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 20 and later
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
Windows This function is now available for WINDEV applications in Windows.
New in version 20
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
Windows This function is now available for WINDEV applications in Windows.
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
Windows This function is now available for WINDEV applications in Windows.
Versions 25 and later
WEBDEV - Browser code This function is now available in browser code.
New in version 25
WEBDEV - Browser code This function is now available in browser code.
WEBDEV - Browser code This function is now available in browser code.
Example
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