yesthattom: (Default)
[personal profile] yesthattom
Holy shit! Google is now providing AJAX apps 2 free ways to (in a privacy-sensitive way) determine where the user is located. That means ticket sites, travel sites, etc. can now default to the right state/country, and mobile (cell phone) apps can (if your phone supports it) use the info too. Awesome.

If you want to test it, go to the Google 2008 US Election Gadget (http://www.google.com/2008election/) and see if it defaults to your state when you click “News by state”.

First, there’s the AJAX API property that provides a simple way to get an approximate, region-level estimate of a user’s location based on their IP address. It’s as simple as referencing google.loader.ClientLocation, which is made available using the Google AJAX API Loader. This API does not require users to install any client-side software.
...
Second, the Gears Geolocation API provides a way to get a more precise estimate of a user’s location. 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 postion fix. In the near future, we’ll be adding data from your WiFi connection to improve accuracy even further, on both desktop and mobile. In all cases, Gears takes care of assimilating the results from each source and returning the best available position estimate.

The Geolocation API has two JavaScript methods: getCurrentPosition() makes a single, one-off attempt to get a position fix, while watchPosition() watches the user’s position over time, and provides an update whenever the position changes.

Read all about it here.

Date: 2008-08-25 12:56 pm (UTC)
From: [identity profile] catwithbell.livejournal.com
Defaulted to CA for me.

Date: 2008-08-25 05:01 pm (UTC)
From: [identity profile] lordlnyc.livejournal.com

At work: it correctly defaulted to NY for me. However, it incorrectly defaulted to the John McCain tab and not Barack Obama's ;-)

Date: 2008-08-29 01:13 pm (UTC)
From: [identity profile] wordmad.livejournal.com
Gee, I thought after watching "Numb3rs" all this time, that we could already do that.

Extended Google Geolocation API

Date: 2008-10-08 10:06 pm (UTC)
From: [identity profile] www-alrond-com.livejournal.com
At the beginning, Google Geolocation API has determined the location for only Americans, for the other it has returned "unknown". Later this service was advanced, but it often does not show results even for developed countries as yet. For such cases, there is a simple javascript extension (http://www.wipmania.com/ru/blog/google-geolocation-api/) to the Google API, which gives back the country of user.

December 2015

S M T W T F S
  12345
6789 101112
13141516171819
202122 23242526
2728293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 13th, 2026 11:57 pm
Powered by Dreamwidth Studios