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:
I'm only familiar with my own device, so this is my list so far:
?
What is the level of support in Blackberry, Android phones, etc?
As of today, the W3C Geolocation API (widely associated with, though not technically part of, HTML 5) is support in the following major desktop browsers:
There are at least two mobile browsers that implement the Geolocation API:
On all of these platforms, you should be able to use navigator.geolocation.getCurrentPosition, etc.