Creating a Geolocation App Framework Plugin

Creating an attractive and effective hybrid HTML5 application that uses geolocation services is easy with this piece of code I would like to share. This plugin for App Framework will query the mobile device for its current location and then plot it on a map drawn on a particular page using App Framework. Take a look at this video for a demonstration:

You can find the source code for this App Framework Plugin included with this blog post.