Chapter 8: Geolocation and AJAX
One of the benefits using HTML5 on mobile devices is that it provides you with the capability to use the geolocation feature to deliver local content to your users. This can range from showing a list of nearby restaurants, or specials, or even friends. Geolocation lets you find the user’s physical location, which you can then use to find local information or deliver content based on location. The introduction of this new technology in HTML5 opens up numerous ideas to web developers. Before HTML5, location information couldn’t be accessed in the browser, but only by building a native app. Most mobile apps use geolocation, and desktop browsers supporting HTML5 features can also access this feature.
In this chapter, you finish the Find tab and write some AJAX and geolocation functions using the foursquare API. This will enable you to quickly scan around the user’s current location for wine shops. You also use the Google Maps ...