You could infer the heading by "simply" telling the user:
"Move in the way you look for about 50 meters."
If you walk a straight line and the Laptop knows where it is at any given time it can infer the heading.
"Move in the way you look for about 50 meters."
If you walk a straight line and the Laptop knows where it is at any given time it can infer the heading.
If all you have is WiFi- or cell-tower-based location, then you're not going to be able to get enough precision to make the value meaningful.