This app works with a very unique technique in which this app has three axis gyroscopes which along with some trigonometry does the distance measurement. When speed comes into act then some mechanism involving motion capture with the video cameras might do the act.
Get the app from iTunes for just $0.99. Check out the below video to know how the app works: