Background:
I am developing a navigation app for android using mapquest maps. I have wearble device which vibrates when the user has to turn left/right. Now, as the user deviates from the path computed by mapquest, a rerouting occurs. The newly created path sometimes, is different from user heading. So, I would like to indicate the user to turn left/right/back to get back on the new path and the regular navigation process continues there on.
problem:
How to calculate the bearing between stationary user heading and a geopint, such that I could put that geopint in N/S/E/W quadrants in reference to the user location and indicate to turn left if it is west or right if it is East
Here is a link to a picture which dscribes the concept metioned above
https://www.dropbox.com/s/m8tugeavmjb46ck/Untitled.jpg?dl=0
Please help me out here
thanks