Geolocation API for Adobe AIR?
Published on October 08, 2008
By Pete Freitag
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:
This is all pretty awesome, does Adobe plan on adding Geolocation API support to the Adobe AIR Platform?
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:
- Adobe AIR Tutorial for HTML / JavaScript Developers
- Cross Domain Data Theft using CSS
- Ajax Same Origin Policy No More with Firefox 3.5
- Google's JavaScript API Loader
Discuss / Follow me on Twitter ↯
Tweet Follow @pfreitagComments
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
http://code.google.com/apis/ajax/documentation/#ClientLocation