Pete Freitag Pete Freitag

Geolocation API for Adobe AIR?

Published on October 08, 2008
By Pete Freitag

Mozilla recently announced a new project called Geode - which allows web sites to request your location using JavaScript. I assume this will be built into a future release of Firefox someday, but for now it's a Plugin.

Geode allows Firefox to support the Geolocation API Specification which is a JavaScript API for getting location information from a hosting device or web browser.

Here's a Code example:

navigator.geolocation.getCurrentPosition(function(pos) {
  alert( pos.latitude + ", " + pos.longitude );

Geode will ask for permission before giving the web site access to your location, here's a screen shot:

Screen shot of geode firefox plugin for location data

This is all pretty awesome, does Adobe plan on adding Geolocation API support to the Adobe AIR Platform?

geo javascript firefox mozilla air air adobe

Geolocation API for Adobe AIR? was first published on October 08, 2008.

If you like reading about geo, javascript, firefox, mozilla, air, air, or adobe then you might also like:

Discuss / Follow me on Twitter ↯


You can pull that information using the Google API google.loader.ClientLocation:
by Anthony Prato on 10/08/2008 at 8:21:09 PM UTC
Thanks for the link Anthony, but it looks like the google ClientLocation API uses the IP address to determine location. The Geode actually uses Wifi Triangulation (using Skyhook?s Loki technology) to determine the lat / lon.
by Pete Freitag on 10/09/2008 at 11:35:15 AM UTC