ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Geolocation functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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.
Example
AndroidAndroid Widget iPhone/iPadIOS WidgetMac Catalyst
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: wd290device.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

Last update: 05/26/2022

Send a report | Local help