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. ...

Get HTML5 Solutions: Essential Techniques for HTML5 Developers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.