Hello
I am looking to write a two functions manage GPS/heading inputs
The first function will take the user sGPS(lat,lon) and another set of cords(lat,lon) and return a heading (compass direction for the second cocords from the users position).
heading = GetHeadingForThisGPSCord(myCurLon, myCurLat, targetLon,targetLat)
> input (-30, 150, -30, 155)
> Returns say 90 deg (East).
The second function will return he GPS cords of a place say 100k away from the users current cords in a known angle.
{targetLon TargeyLat} = GetGPSxxDistFromMeInThisDirection(myCurLon, myCurLat, facingThisDirection, distanceAway)
> input (-30, 150, 78, 100km)
> returns the direction in degrees to the target from user
Still plucking data together on GPS math in Corona
Any code snippets that people are aware of?