Which Devices Support Javascript Geolocation via navigator.geolocation?

前端 未结 7 2101
没有蜡笔的小新
没有蜡笔的小新 2020-11-29 00:28

The iPhone supports geolocation in mobile Safari via the following call:

navigator.geolocation.getCurrentPosition(
  function(pos){
    var lat = pos.coords.         


        
相关标签:
7条回答
  • 2020-11-29 01:16

    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/"

    0 讨论(0)
提交回复
热议问题