If you have the heading and a few locations then you can also infer where north/south/east/west is. Or am I wrong?
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.