The most amazing part of all the technologies that came with HTML5 is how easily they can be used to create little apps that make our lives a lot easier. It’s surprisingly simple to combine them to create something practical and simple. Today we will be using geolocation and the Weather Underground API to create a simple Weather App that will determine where you are and tell you the current weather for your location. To work with the Weather Underground API you will need an API key but don’t worry...
The first part of this mini-series showed you what PhoneGap is, and how it can help you develop mobile applications with familiar technologies. In this second part we’ll look at some more device APIs. The geolocation API ... This API is used on a variety of websites to make the site (or in this case the mobile application) location aware. A simple example that would get you the user’s latitude, longitude and altitude coordinates and show them on the screen would look something like: document.addEventListener("deviceready",...
Geolocation is one of the most exciting features offered by HTML5. Using some relatively simple JavaScript code, you can create Web applications that determine various aspects of the user location, including longitude, latitude and altitude plus more. Some Web applications can even provide navigation functionality by monitoring the user position over time, integrating with map systems such as Google Maps API. As with all HTML5 functions, you cannot yet rely on browser support. Where browser...