New HTML5 "Geolocation Sensor" API published as Working Draft

The W3C's Geolocation API is one of HTML5's success stories. It met a clear need (providing access to a device's geolocation sensor) and saw broad browser support relatively quickly. Many modern Web pages use this API to get access to a client's geolocation information.

However, the existing HTML5 Geolocation API predates W3C's efforts to have a more consistent look and feel for various sensor APIs by defining a Generic Sensor API. This generic API has seen some success and has been used as a foundation for recently defined concrete sensor APIs.

W3C just published a first public working draft of the new Geolocation Sensor API. This new geolocation API is based on the generic sensor model mentioned above, improves security and privacy, and is extensible. The API aims to be polyfillable on top of the existing Geolocation API.

The Author

Erik Wilde

Lead API Technologist

An expert in protocol design and structured data, Erik Wilde consults with organizations to help them get the most out of APIs and microservices. Erik has been involved in the development of innovative technologies since the advent of the Web and is active in the IETF and W3C communities. He obtained his PhD from ETH Zurich and served as Associate Adjunct Professor at Berkeley before working at EMC, Siemens and now CA Technologies.

Join the Conversation