CHAPTER 12

images

Finding Location with the Geolocation API

Most of today’s web applications don’t care where you’re accessing them from. Regardless of your geographical location, they present the same content in the browser. However, if you make such information available to web applications, they can make innovative use of it. For example, a social networking web application can suggest friends who are in the same locality as you. User-location information can also be used in job portals to suggest jobs near the user’s geographical location.

The idea of tracking user location isn’t new, but at first there was no standard way to find this information. ...

Get HTML5 Programming for ASP.NET 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.