Mobile Speedo Primer Tutorial

Mobile Speedo Primer Tutorial

Mobile Speedo Primer Tutorial

Today we’re starting out on a new “Speedo” web application. If we do two versions, we’ll be tempted to call the program “Budgie Smuggler” … but we digress.

Our web application today will only work on mobile devices. Do you remember when we talked about Javascript navigation.geolocation in the context of HTML/Javascript Where Does It Get Me To Primer Tutorial as a geolocation tool of great use? Well, today’s work is trying to harness those methods to have you start the web application ahead of time when you have Wi-Fi or some other method of use available, and that will be enough to load in the navigation.geolocation client side logic that we can continue running, as a “Speedo”, out and about in the car or train or bus or whatever.

So doing this we first thought that it would involve Device Motion events and would come down to taking out gravity from the equation and working out the speed the device is moving, making use of the internal gyroscopes a modern smart device uses to measure these Device Motion event measures. However, trying this didn’t seem to get us anywhere regarding reference to Earth, whereas Geolocation techniques do.

We hope you give the web application you could call speedo.html a go with our live run link. It’s early days with it, and it may only work for mobile devices using home Wi-Fi with you walking around using the web application, but we feel we can improve as time goes on.

If this was interesting you may be interested in this too.

This entry was posted in eLearning, Event-Driven Programming, Tutorials and tagged , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>