In this challenge I used the Geolocation API to show a user’s speed/direction on screen. Playing around with the iOS emulator was a bit fiddly but I managed to get something working. I’ve had mixed results with the live demo.
One cool thing I learnt:
navigator.geolocation.watchPosition(); can be used to listen for the user’s position.
The source is available at github.