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?