HTML5 Solutions: Essential Techniques for HTML5 Developers
by Marco Casario, Peter Elst, Charles Brown, Nathalie Wormser, Cyril Hanquez
Chapter 10. HTML5 Geolocation API
Wouldn't it be great if a web application just knew where you are located? Imagine being able to search information specific to your current location—where are the closest restaurants, which of your friends are nearby, what is the traffic situation like for your town...
This is all possible and a relatively straightforward feature to add using the HTML5 Geolocation API. Location-aware applications are a popular topic, and in the not-too-distant future they will bring an end to your having to specify your current location manually.
One issue that always comes up when you think about this feature is privacy. You might not always want applications to know your location and potentially share it with the general public. ...
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.
Read now
Unlock full access