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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.