How does a browser get GPS data from a computer?
问题 This question was migrated from Super User because it can be answered on Stack Overflow. Migrated 8 years ago . HTML5 browser can retrive the gps position of a computer. http://diveintohtml5.ep.io/geolocation.html 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. 回答1: Chrome and Firefox: GPS via gpsd if available (Linux only) 1, 2 system's Location API (Windows 7 only) 2 WiFi networks via Google