Why on earth would it work on Yosemite? This is very clearly a mobile-oriented demonstration.
"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.