Unformatted text preview: an object. How does Geolocation work?
● GPS Satellites
● Location by IP address
● Cell phone triangulation Basics
The geolocation object gives Web content access to the location of the device.
This lets a Web site or app offer customized results based on the user's location. window.navigator.geolocation.getCurrentPosition
The getCurrentPosition method is used to get the current position of the device. window.navigator.geolocation.watchPosition
The watchPosition() method is used to register a handler function that will be
called automatically e...
View Full Document