Android Question Heading from Lat & Long

badal405

Member
Licensed User
Longtime User
Dear Erel,
How can I calculate the Heading from Lat & Long? I can get the bearing from GPS1_LocationChanged. But I don't find any function returning Heading. I need to calculate the heading (0 - 360 degrees)
Please help.
Best regards.
 

derez

Expert
Licensed User
Longtime User
Location1.Bearing , but it will be correct only while you are moving.
Heading and Bearing are the same, unless you can tell and add the drift vector (like wind, in flying).
If you know the coordinates of the target then use BearingTo .
 
Upvote 0
Top