Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does a browser get GPS data from a computer?

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.

like image 203
Clynamen Avatar asked Sep 11 '11 07:09

Clynamen


People also ask

How does the browser get your location?

Your browser uses different types and sources of information to identify your location. These include your IP address, geolocation via HTML5 in your browser, and your PC's language and time settings.

How does Chrome get my location?

How Chrome shares your location. If you let Chrome share your location with a site, Chrome sends information to Google Location Services to get an estimate of where you are. Chrome can then share that info with the site that wants your location.

How does browser know my location with VPN?

Your browser knows your location because your location isn't determined based on information about IP Address in most cases. Window and most mobile devices use your access points around you to determine your location. The other possibility is the VPN is configured to leak your information.


1 Answers

Chrome and Firefox:

  • GPS via gpsd if available (Linux only) 1, 2
  • system's Location API (Windows 7 only) 2
  • WiFi networks via Google Location Services 1
like image 60
user1686 Avatar answered Oct 05 '22 22:10

user1686