How does precise GeoLocation in HTML5 work?

5,273

whether they also store a huge database of wireless AP points,

Well, that's one way of how it works, according to their blog:

Google Maps asks your web browser for your location. Typically, your browser uses information about the Wi-Fi access points around you to estimate your location. If no Wi-Fi access points are in range, or your computer doesn't have Wi-Fi, it may resort to using your computer's IP address to get an approximate location. As you'd expect, the accuracy of My Location varies with your location, and in some cases, Google Maps may not be able to provide a location at all.

W3C Geolocation API, however mentions

The Geolocation API defines a high-level interface to location information associated only with the device hosting the implementation, such as latitude and longitude. The API itself is agnostic of the underlying location information sources. Common sources of location information include Global Positioning System (GPS) and location inferred from network signals such as IP address, RFID, WiFi and Bluetooth MAC addresses, and GSM/CDMA cell IDs, as well as user input. No guarantee is given that the API returns the device's actual location.

Share:
5,273

Related videos on Youtube

Archit Thakur
Author by

Archit Thakur

Updated on September 17, 2022

Comments

  • Archit Thakur
    Archit Thakur almost 2 years

    This is quite a long winded question, you can just skip to the last sentence if you don't care about the background info.

    I just tested out HTML5 geolocation using Firefox 3.5+, and it managed to find my house, literally my exact address. I've been reading about how it works but can't find any detailed information, it says it collects information about local access points and then forwards this information to Google.

    I checked this out by testing it out on my wired PC, and it wasn't even close. So it definitely uses wireless. I checked out another service called Skyhook which works similarly, and their "How it works" page says they have a database with thousands of wireless points stored, so when you connect it simply looks up wireless points around you.

    Sounds like a perfect secondary job for the Google Street View van, though everywhere I've read I can't figure out if Google uses the same technique.

    I'm wondering how Google's geolocation works, whether they also store a huge database of wireless access points, or if there are other methods that can do this.

  • quack quixote
    quack quixote over 14 years
    -1. informative-but-not-really-answers should be posted as comments. fascinating link, but what does this have to do with the question (which is about how Google's geolocation works)?
  • alfplayer
    alfplayer over 14 years
    It does provide relevant information. I didn't expect this to be the best answer.
  • Archit Thakur
    Archit Thakur over 14 years
    Thanks, I already read this, it's how I discovered the information about wireless in the first place. But it's not what I was looking for in my question.
  • Archit Thakur
    Archit Thakur over 14 years
    Thanks, the google link is exactly what I needed. Not sure how I managed not to find this with a google search. Thanks.
  • soandos
    soandos almost 12 years
    Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.