本文介紹了瀏覽器如何從計算機獲取 GPS 數據?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
HTML5 瀏覽器可以檢索計算機的 gps 位置.http://diveintohtml5.ep.io/geolocation.html
HTML5 browser can retrive the gps position of a computer. http://diveintohtml5.ep.io/geolocation.html
我想創建一個偽造 GPS 設備的應用程序,但我無法從任何地方讀取瀏覽器如何從計算機獲取 GPS 數據.
I would like to create an application that fakes a GPS device, but I couldn't read anywhere how the browser gets GPS data from the computer.
推薦答案
Chrome 和 Firefox:
Chrome and Firefox:
- GPS 通過 gpsd 如果可用(僅限 Linux)1, 2
- 系統的位置 API(僅限 Windows 7)2
- 通過 Google 定位服務提供的 WiFi 網絡1
- GPS via gpsd if available (Linux only) 1, 2
- system's Location API (Windows 7 only) 2
- WiFi networks via Google Location Services 1
這篇關于瀏覽器如何從計算機獲取 GPS 數據?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!