Geolocation API for Adobe AIR?
October 08, 2008
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?
Tweet
Permalink | Add Comment |
add to del.icio.us
| Tags: geo, javascript, firefox, mozilla, air, air, adobe
add to del.icio.us
| Tags: geo, javascript, firefox, mozilla, air, air, adobe
Related Entries
- Adobe AIR Tutorial for HTML / JavaScript Developers - February 25, 2008
- GreaseMonkey User Scripts - May 11, 2005
- Cross Domain Data Theft using CSS - July 21, 2010
- Ajax Same Origin Policy No More with Firefox 3.5 - June 30, 2009
- Google's JavaScript API Loader - November 26, 2008
Trackbacks
Trackback Address: 680/1ADF20EBAFAE6881072AA5F7F48EB463
Comments
On 10/08/2008 at 10:21:09 PM EDT Anthony Prato wrote:
1
You can pull that information using the Google API google.loader.ClientLocation:
http://code.google.com/apis/ajax/documentation/#ClientLocation
On 10/09/2008 at 1:58:51 AM EDT blueclock wrote:
2
I agree with Anthony Prato and just to clarify, google.loader.ClientLocation does not ask the user for permission. I'm already using it on a site called kunstart.be but I give the users the option to opt out of geo-detection. google.loader.ClientLocation is considered to be low resolution, though I've found it to be accurate enough for my needs (400m) in my case. Gears also has a geo-location API, that requires user permission to install and, separately, permission to use geo-coding. It is considered much higher resolution and definitely works on Windows mobile devices as well. It also has information available on the mobile device and provider, the mast your connecting via, your altitude etc So to answer part of your question about AIR, well if your the style of AIR developer that uses HTML/Javascript then these methods are already available to you as you can pull in various libraries and google APIs into AIR.
On 10/09/2008 at 1:35:15 PM EDT Pete Freitag wrote:
3
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.
On 07/22/2010 at 8:43:33 AM EDT raju2010 wrote:
4
Hi, Mark Doherty is coming this Aug at Adobe Flash Platform Summit 2010 to Speaks on AIR 2.5 for Android. The summit will take place on 25 and 26 Aug'10. For details log on to adobesummit.com
On 07/22/2010 at 8:43:49 AM EDT raju2010 wrote:
5
Hi, Mark Doherty is coming this Aug at Adobe Flash Platform Summit 2010 to Speaks on AIR 2.5 for Android. The summit will take place on 25 and 26 Aug'10. For details log on to adobesummit dot com
Post a Comment
Recent Entries
- Firefox Aurora now Supports Content Security Policy 1.0
- Writing Secure CFML cfObjective 2013 Slides
- Upgrading to Java 7 on Linux
- J2EE Sessions in CF10 Uses Secure Cookies
- Learn about ColdFusion Security at cfObjective 2013
- Session Loss and Session Fixation in ColdFusion
- FuseGuard 2.3 Released
- CKEditor Spell Checker Plugin





