Given are two geo locations, each with latitude and longitude.
One is the current location, the other is a target location.
is there a formula for calculating the target's cardinal direction for 0 being North, 90 being East and so on?
Edit: Needed is the direction for the shortest distance. It isn't necessary to give a solution for two opposite locations (for example the poles).