Google Chrome getting navigator.geolocation

Just when I was writing an article about geolocation and bemoaned the fact that only Firefox on the Desktop supports the “W3C geolocation API“:http://dev.w3.org/geo/api/spec-source.html (Safari only as the mobile version) there is a new beta out that stepped up and filled that hole.

Following the link on “ReadWriteWeb”:http://www.readwriteweb.com/archives/google_chrome_becomes_location_aware.php to the “Chrome Developer Blog”:http://googlechromereleases.blogspot.com/2010/03/dev-channel-update.html I downloaded the beta for Mac and tried it out.

The result, using the “GeoPlanet Explorer”:http://isithackday.com/geoplanet-explorer/geodrilldown.php shows that navigator.geolocation works:

chrome with geolocation

In order to enable geolocation on Chrome you need to start it from the Terminal – for example in OSX:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --enable-geolocation

Good times ahead. Now ship it, Google!

Tags: , , , ,

5 Responses to “Google Chrome getting navigator.geolocation”

  1. jaggeree (Chris Thorpe) Says:






    RT @codepo8: Google Chrome beta with geolocation: [link to post] – works brilliantly – YAY just in time for #bonnierhackday next week

    Posted using Chat Catcher

  2. dalmaer (Dion Almaer) Says:






    RT @codepo8: Google Chrome beta with geolocation: [link to post] // I assumed it was already in there!

    Posted using Chat Catcher

  3. galchwyn (manel villar) Says:






    Google sabe donde estas RT @dalmaer:@codepo8:Google Chrome beta with geolocation: [link to post] // I assumed it was already in there!

    Posted using Chat Catcher

  4. girlie_mac (Tomomi Imura) Says:






    In order to enable geolocation on Chrome, see [link to post] by @codepo8

    Posted using Chat Catcher

  5. edeverett (Ed Everett) Says:






    Oooh. navigator.geolocation in Chrome (almost) : [link to post] Good stuff, now other browsers get on with it please.

    Posted using Chat Catcher

Wait till I come! is the blog of Christian Heilmann , a developer evangelist living and working in London, England. Download vcard.

Feed me, Seymour: Entries (RSS) and Comments (RSS).