O'Reilly logo

Introducing HTML5 by Bruce Lawson, Remy Sharp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9 Geolocation

Remy Sharp

THE GEOLOCATION API is one of those APIs that has absolutely nothing to do with the HTML5 specification, and was created by the W3C rather than the WHATWG. In fact, it was never even part of the original Web Applications specification (though it does now reference the HMTL5 specification), but it’s so darn cool that we had to include it in this book. In actuality, it’s a key API when it comes to applications and adding some wicked—yes, wicked—social interaction.

The API is incredibly simple to work with, and you can easily enhance your web apps if they make use of any geo data by plugging this API into the app and saving your visitors from having to finger or scroll all over your map to find themselves.

Currently ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required