• On TechRepublic: 10 cool USB flash drive tricks
August 22, 2008 8:10 AM PDT

Google offers location services to Web sites

by Stephen Shankland

Google announced two services Thursday that programmers can use to build services into Web sites that employ a site user's location.

The first is a tool for Web sites built with the Ajax programming method. The Ajax client location property provides Web sites with a rough estimate of a user's location based on his or Internet Protocol address, said Google engineer Steve Block on the Google Code blog. The property can be seen in action in the "news by state" feature on Google's 2008 election site API (application programming interface).

Second is an expected change to endow Google's Gears software with the ability to employ more detailed location information. This Geolocation API is only available to browsers with the Gears plug-in installed; Gears enables a variety of features such as offline browsing that make browsers a better foundation for rich Web applications.

"On mobile devices with Gears installed, the Geolocation API can use the cell-ID of nearby cell towers or on-board GPS (if either is available) to improve the position fix. In the near future, we'll be adding data from your Wi-Fi connection to improve accuracy even further, on both desktop and mobile," Block said.

Not everybody wants Google to know where they are, though, and Google says the Geolocation API takes this into account.

"The privacy of users' location information is extremely important. The first time your site calls the Geolocation API to request a user's location, that user will be shown a permissions dialog where they can choose to allow or deny your site access," Block said. "Users can change that decision at any time via the 'Gears settings' dialog in the browser menu. Google does not keep location information about users when your site uses the Geolocation API."

Stephen Shankland writes about a wide range of technology and products, but has a particular focus on browsers and digital photography. He joined CNET News in 1998 and since then also has covered Google, Yahoo, servers, supercomputing, Linux and open-source software, and science. E-mail Stephen, or follow him on Twitter at http://www.twitter.com/stshank.
Recent posts from Webware
Popular iPhone movie app flops on BlackBerry
Opera Mobile 10 beta browser: First Look video
Google trying not to cross 'the creepy line'
Integrated retweet on its way to Twitter
Mozilla's e-mail group looks toward the cloud
Facebook: We're going after scammy ads, too
Alterna-browsers Firefox, Chrome get quick fixes
Offerpal Media mess gets stickier
advertisement

About Webware

Say No to boxed software! The future of applications is online delivery and access. Software is passé. Webware is the new way to get things done.

Add this feed to your online news reader

Webware topics

FAQ: Buying the right Windows 7 upgrade

Readers still have lots of questions on just which version of the software they need to buy in order to upgrade their PC. CNET News tries to offer some answers.

N.Y. lawsuit details Intel's 'largesse' toward Dell

Attorney General Andrew Cuomo's federal antitrust case filed Wednesday alleges a longstanding symbiotic relationship between Intel and Dell.

Inside CNET News

Scroll Left Scroll Right