I have noticed that apon using the Geolocation test on the test drive site, that my location according to Internet Explorer 9 is off. I don't just mean off, I mean WAY off. It has me down in Durham, England when in fact it should be in Scotland.
Apon using it in Google Chrome it gets my location to the house. Quite litterly, but its way off in IE9. I know there is something called "default location" or something but I never set anything up involving that so I doubt that comes into play.
Whats going on ?
From http://dev.w3.org/geo/api/spec-source.html, I find the following document:
“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.”
From my understanding of the Geolocation spec, it can scan neighboring WiFi networks to infer location. You can test this by disabling and enabling your WiFi adapter.
Hope it helps.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
I'm bumping this because I would really like to see an answer, and frankly the support I am getting here is awful. I don't want to see just a generic answer, I am computer literate I do understand computer talk. There is no reason why this happens because the API is based on the exact same thing that Firefox and Google run, its a W3C API correct?
Here is a screen shot to show what I mean. On the left is IE9 and on the right is Chrome. Chrome can locate me straight down to my street yet IE9 gets the nearest city to me? A completely random location.
Browser geolocation is unreliable for some reasons. Users may have wireless disabled, or there can be very few wireless networks around that may fail to retreive a good location. As in this example, IE fails to give the best location.
Another problem is that user have to accept to share the location with your server. I bet that 50% of your first time user won't do that. Instead of this, you can use geolocation by IP,. Here is an API service that you can use: http://www.ipgp.net/developer-tools/
Google and FF work because they use the Google location database for geolocation information. IE9 uses the Microsoft Location database. The MS data is vastly inferior and appears to be a stale IP lookup and nothing more. We're seeking a workaround for IE9 users that provides the same excellent results as Chrome and FF.
- Proposed as answer by IECustomizerMVP Monday, July 09, 2012 5:44 AM