I have a gps tracking system in a vehicle. It provides the position of the vehicle as a latitide and longitude coordinate using wgs84. Apparently the unit can provide a heading for the vehicle in degrees.
Firstly, how does it calculate the heading? I know you won't know for definite but you will probably have an intelligent idea. Perhaps it stores the previous gps position and then compares this to the current gps position and uses this to calculate a bearing?
Secondly, if I have a heading in degrees, how could i convert this into one of the 8 compass points from N, NE, E, SE, S, SW, W, NW