Opera becomes the latest browser platform to support location awareness through support for a draft of the W3C geolocation API. The group joins Google (via Gears) and Mozilla (via a future Firefox release) in letting a browser, with permission, tell a web application where you are.
Your browser may know exactly where you are, and tell everyone all about it.—with your permission, of course. Opera becomes the latest web browser platform and application to support site-requested geolocation, the conduit that lets a website ask a browser (typically via JavaScript) for its current coordinates. A user may allow or disallow these requests.
Opera, like Google and the Mozilla Foundation, is supporting the W3C's geolocation API, which enables JavaScript requests to be embedded in pages. A geolocation-aware browser can provide information. (Google developed the W3C API, and one of its employees is the standard's editor.)
Putting location in the hands of a website or web application makes sense for a variety of activities: finding your location without knowing where you are is an obvious one, as is navigation. However, location is commonly used on mobile devices to tag photos, point you out to your friends in social networks, and play real-world overlay games.
In a laptop scenario, imagine Flickr using geolocation to tag photos that lack coordinates when passed through a browser or a Flickr-specific application that has an embedded browser with JavaScript support.
For embedded devices and mobile operating systems that lack such capabilities now, widespread Javascript/browser support for geolocation makes it far simpler to integrate location awareness.
The geolocation API functions (but isn't implemented) in a similar fashion to the iPhone's Core Location service. iPhone developers can use Core Location to obtain coordinates, which are derived on the iPhone 3G from a combination of WiFi positioning, cell-tower trilateration, and onboard GPS. iPhone users are always asked before an application obtains location the first time whether or not that's acceptable.
Web developers will enable location awareness in the same way, using JavaScript calls like navigator.geolocation.getCurrentPosition() to trigger a browser permission request to the user, and then, if allowed, obtain coordinates that can be used.
There's currently an active debate in the W3C geolocation drafting group as to whether the API should include specific privacy provisions, or whether that should be extra-specification and bumped up to the browser's maker to determine how permission and privacy is handled.
Opera's first pass at geolocation, in a beta build, is paired with Skyhook Wireless's WiFi positioning system. Skyhook is used by Apple as a primary method on first-generation iPhones and part of the location system on iPhone 3G models. The company constantly drives cities around the globe to update WiFi scans, and also integrates snapshots sent every time a phone or laptop requests location data based on its WiFi environment.
Google's Gears Geolocation API was announced October 2008, and it relies on a Google proprietary WiFi location server that the company won't provide details about.
The Mozilla Foundation has plans to have full geolocation support in Firefox 3.5, but enabled it in a beta of 3.1 to provide early exposure to developers. The group plans on allowing multiple location information sources, although as of the last discussion in a developer blog in Octoboer 2008, no decisions had been made about what kind of location provider support would appear in 3.1.
Source: ars technica