Skip to Main Content
HTML5 Developer’s Cookbook
book

HTML5 Developer’s Cookbook

by Chuck Hudson, Tom Leadbetter
December 2011
Intermediate to advanced content levelIntermediate to advanced
480 pages
10h 42m
English
Addison-Wesley Professional
Content preview from HTML5 Developer’s Cookbook

10. Location Awareness with the Geolocation API

For years, websites have used location information to provide enhanced user experiences, such as where the closest store is or events in your area. The location data has been gathered by using a browser’s IP address and matching it in a database or just asking the user for their location. With smartphones and built-in GPS, there is a significant increase in apps that are location-aware. With HTML5 and the Geolocation API, there is an easy and fairly reliable method by which websites and web applications can access a browser’s location. In this chapter, you will learn about the Geolocation API objects and methods in a series of recipes to retrieve the browser device’s location information for use ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

HTML5 Cookbook

HTML5 Cookbook

Christopher Schmitt, Kyle Simpson
HTML5 in Action

HTML5 in Action

Greg Wanish, Rob Crowther, Joe Lennon, Charles Brindle

Publisher Resources

ISBN: 9780132697361Purchase book