Google Maps v3 (in beta) already utilizes the sensor variable - so I dont see how this is advantageous for a mobile website.
As for desktop apps - Google also has an API function to determine your location based on your IP. But I dont think it utilizes Firefox's geo-location ability.<p><em>What is the benefit of this API compared to whats already available?</em>
For those of you interested in a similar wrapper for offline storage (via Google Gears or HTML5 databases), here is the wrapper Google suggests you use:
<a href="http://code.google.com/p/webstorageportabilitylayer/" rel="nofollow">http://code.google.com/p/webstorageportabilitylayer/</a>
Very cool-looks like this is the same code that is used in Google Maps for location awareness in Firefox. It doesn't seem to like Opera (or it could be my connection not being found) but it seems to be cross browser compatible.
This snippet uses the new navigator.geolocation.getCurrentPosition() feature in Firefox 3.5<p>You will be redirected to Google Maps if you click the folowing link:<p>(You must click "share location" when prompted by the browser, you know, privacy concerns)<p><pre><code> javascript:navigator.geolocation.getCurrentPosition(function(position){window.location.href="http://maps.google.com/?ll="+position.coords.latitude+","+position.coords.longitude;});
</code></pre>
Drop it in your bookmarks toolbar and presto!<p>Or get it from here <a href="http://mylittlehacks.appspot.com/geolocation" rel="nofollow">http://mylittlehacks.appspot.com/geolocation</a>