working with GPS coordinates lazarus / 21-General ---------------------------------------------------------------------- mika · 2021-01-27 19:12 Looking for package/unit written in pascal that work with GPS coordinates. I need function - distance and angle between two GPS coordinates. ---------------------------------------------------------------------- wp · 2021-01-27 20:59 GPS distance is implemented in unit mvEngine of the LazMapViewer package (install via OPM, or look directly at https://sourceforge.net/p/lazarus- ccr/svn/HEAD/tree/components/lazmapviewer/). What is the "angle" between two GPS points? ---------------------------------------------------------------------- mika · 2021-01-27 21:45 Quote from: wp on January 27, 2021, 09:59:08 pmWhat is the "angle" between two GPS points? Azimuth (Degrees/Radians) ---------------------------------------------------------------------- MarkMLl · 2021-01-27 21:56 He means "are you talking about a course, a heading, a bearing, the great circle angle, the angle subtended from the POV of one (unspecified) satellite..." MarkMLl ---------------------------------------------------------------------- wp · 2021-01-27 22:27 Of course. This is an intermediate result of the CalcGeoDistance function that I menationed, before the angle is multiplied by the earth radius. ---------------------------------------------------------------------- mika · 2021-01-28 10:02 Quote from: wp on January 27, 2021, 11:27:27 pmThis is an intermediate result of the CalcGeoDistance function that I menationed, before the angle is multiplied by the earth radius. Sadly i could not extract "azimuth" from function CalcGeoDistance. I found this and translated to pascal: https://www.movable-type.co.uk/scripts/latlong-vincenty.html It would be nice if there would be fcl-gps or gps package in fpc. ---------------------------------------------------------------------- sstvmaster · 2021-01-28 10:50 Here i have written an example some time ago, see attachment. ---------------------------------------------------------------------- mika · 2021-01-28 13:15 Quote from: sstvmaster on January 28, 2021, 11:50:55 amHere i have written an example some time ago, see attachment. Thank you. It's what I was looking for.