Which Devices Support Javascript Geolocation via navigator.geolocation? Which Devices Support Javascript Geolocation via navigator.geolocation? javascript javascript

Which Devices Support Javascript Geolocation via navigator.geolocation?


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:

  • Firefox (since 3.5)
  • Safari (since 5.0)
  • Google Chrome (version depends on OS)
  • Opera (since 10.60)
  • Internet Explorer (since IE 9)

There are at least two mobile browsers that implement the Geolocation API:

  • Safari Mobile (since iPhone OS 3.0)
  • Android (since at least Android 1.6)

On all of these platforms, you should be able to use navigator.geolocation.getCurrentPosition, etc.


Although I think it's a great practice to standardize on the (draft, by the way) W3C Geolocation API, it's worth noting that there are a few other options in the browser, which can be particularly helpful if you need to target an older platform.

  • Firefox 3.1 had support for Geode, which uses calls to navigator.geolocation with very similar syntax.
  • Loki is a plug-in built by Skyhook which works on Internet Explorer 6, Internet Explorer 7, Firefox 2, Firefox 3, Safari and Opera. The syntax is substantially different, but still easy.
  • Google Gears provides a geolocation API with a syntax fairly similar to the W3C API syntax. You can install Google Gears on Internet Explorer 6+, Firefox 1.5+, Safari, Opera Mobile and IE Mobile.


From a similar more recent topic:

"I'm working on an open source library that supports all javascript location capable phones with the W3C standard. So far it supports iPhone, Android, BlackBerry and some fringe browser platforms running in a browser. The lib can also be used when writing web stack standalone apps for Nokia OVI and the Palm WebOS.

http://code.google.com/p/geo-location-javascript/"