如果我在任何网页中使用navigator.geolocation.getCurrentPosition()
并使用任何装有GPS的移动设备的网络浏览器访问它,是否会使用GPS导航?
如果设备没有GPS,它将如何确定位置?
最佳答案
Geolocation API is agnostic of the underlying location information sources,因此由浏览器(和设备)确定如何确定地理位置数据。
如果我在任何网页中使用navigator.geolocation.getCurrentPosition()
并使用任何装有GPS的移动设备的网络浏览器访问它,是否会使用GPS导航?
如果设备没有GPS,它将如何确定位置?
最佳答案
Geolocation API is agnostic of the underlying location information sources,因此由浏览器(和设备)确定如何确定地理位置数据。