Rotate globe (north) in direction of object head

Hi Team,
I’ve got a task to perform tracking the globe by moving north in the direction of the object head like a human or car. You can check the fat map link for a better understanding (https://fatmap.com/).

Thanks