Determining the direction the car is moving on the 32 cardinal system

realnumber9 years ago

I have setup a tracker to dump data to my server but looking at the data,i cant really know the direction is moving to from the point it is currently. lets say its at point 'A' with longitude,latitude,speed and beating in degrees.

Can i use the available data to know the directing the car is moving to on the 32 point cardinal system,i.e 30kms, moving north?

Thanks

Anton Tananaev9 years ago

Yes, the course information is available in the "state" panel, but it's only 8 point system, not 32.

realnumber9 years ago

I couldnt find state field in the position table of mysql.should it be there?

Anton Tananaev9 years ago

In the position table there is a course field.

realnumber9 years ago

The course is given in degrees. How do it determine if that is north,east,west or south?

Anton Tananaev9 years ago

North is 0 degrees, and then it goes clockwise from there. For example, east is 90 degrees.

realnumber9 years ago

Thanks Anton.