Geolocation – creating a tracker
One of the features of HTML5 is the Geolocation API. The Geolocation API is a set of methods that help you share your location. It has a number of ways to determine your location:
Using your IP address
Using your wireless network connection
Using your cell phone connection
Using built-in GPS receiver
The most important parameters to show the location are the latitude and the longitude. But there is also the altitude and the accuracy. The Geolocation API can also show the direction you are moving to and the speed.
Sharing your location can be useful in a number of applications on your mobile device. One example is a tracking system where the mobile device stores the coordinates in a table at frequent times. In this way a transport company can see where the vehicles have been. We will create such a tracking system in this recipe. As mobile tracking is typically for mobile devices, we will create a page for mobile devices. Therefore, we will use the jQuery Mobile...