Which Devices Support Javascript Geolocation via navigator.geolocation?

前端 未结 7 2139
没有蜡笔的小新
没有蜡笔的小新 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:11

    Franson's GPSGate is a commercial product that can expose a Windows machine's hardware GPS to any browser through javascript. The interface is a little different from the W3C's implementation though.

    Update: the Express (lite) version of GPSGate is free.

提交回复
热议问题