Search This Blog

Monday, June 14, 2010

HTML5 Apps: Positioning with Geolocation

HTML5 Apps: Positioning with Geolocation

Three years ago, the smartphone “boom” was still an uncertain possibility. Today, we are surrounded by a society of smart phone addicts who live as if their lives cannot continue without instant, mobile access to the web, e-mail, and apps for every occasion. Mobile devices have come a long way in just three short years, and now support a wide range of useful features beyond making phone calls. For location-challenged individuals like myself, geolocation is one of the most useful additions. Many iPhone and Android devices have been fitted with GPS hardware that can produce reliable geographical data, and in this article we will discuss the geolocation capabilities of HTML5. My aim is to help you take advantage of geolocation technology in your next project by walking you through the following topics:
Browser geolocation and how it works
How Asynchronous function calls work
How to use the getCurrentPosition API
What’s in geolocation data
How to fall back on IP address based geolocation when browsers don’t provide native support
How to display a map using geolocation data
How to use the watchPosition and clearWatch APIs

Google Search String

No comments:

Post a Comment

content-wide advt