Which Devices Support Javascript Geolocation via navigator.geolocation ?
        Posted  
        
            by Maciek
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Maciek
        
        
        
        Published on 2009-08-28T20:04:15Z
        Indexed on 
            2010/05/03
            4:08 UTC
        
        
        Read the original article
        Hit count: 778
        
The iPhone supports geolocation in mobile Safari via the following call:
navigator.geolocation.getCurrentPosition(
  function(pos){
    var lat = pos.coords.latitude;
    var long = pos.coords.longitude;
  },
  function(){
    /* Handler if location could not be found */
  }
);
I'd like to build a good list of devices that have one of the following:
- support this feature out of the box, or
- support this feature with an upgrade, or
- support geolocation with equivalent fidelity of data with some other snippet of Javascript.
I'm only familiar with my own device, so this is my list so far:
Out of the box:
- iPhone 3GS
Supported, but only with an update
- iPhone 3G
- iPhone 2G (?)
- PC or Mac computer with Firefox 3.5
Supported with some other snippet
?
What is the level of support in Blackberry, Android phones, etc?
© Stack Overflow or respective owner