pf » Geolocation API for Adobe AIR?
October 08, 2008
Geolocation API for Adobe AIR?
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?
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
- FireFox Click Wheel does not fire onclick Event - May 8, 2006
- FireFox 1.5.0.1 - February 13, 2006
- AJAX on IE - back to the IFRAME - August 17, 2005
Trackback Address: 680/1ADF20EBAFAE6881072AA5F7F48EB463
Comments
On 10/08/2008 at 8:21:09 PM MDT 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/08/2008 at 11:58:51 PM MDT 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 11:35:15 AM MDT 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.
- Top 10 Reserved SQL Keywords
- Web Design Tips for Programmers
- Dear SQL Server Enterprise Manager Developer
- PostalMethods - Web Service for Snail Mail
- Mastering CFQUERYPARAM
- Google Code Search for ColdFusion
- Speaking at CFUNITED 2008
- Getting ColdFusion SQL Statements from SQL Server Trace
Subscribe to my RSS Feed:
RSS
RSS
Pete Freitag is a software engineer, and web developer located in










