在Google地图中显示错误位置的地理位置 [英] geolocation showing wrong location in google map

查看:192
本文介绍了在Google地图中显示错误位置的地理位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用 http://html5demos.com/geo 找到我自己时,它会在FF中显示错误的位置(错误的城市),并且铬。任何为什么会发生这种情况的原因

解决方案

我在Windows上使用Chrome时遇到了同样的问题,但我得到它的工作,至少有些时候。



我还使用 http:/ /html5demos.com/geo



位置不仅不准确,而且位于错误的城市。



我在iPad(Safari)上尝试了相同的示例,并且位置正确。我的iPad与我的电脑使用的是相同的WiFi网络,因此我知道我的ISP返回错误的位置并不是问题,这与我的电脑上的浏览器有关。



我通过进入Chrome设置并清除缓存和Cookie,从而在Chrome中显示正确的位置。



仅仅是不够的在Chrome浏览器中选择工具/清除浏览数据/饼干和缓存,
,然后在Chrome中选择设置/隐私/内容设置/所有Cookie和网站数据并删除所有Cookie后,显示正确的位置。



更新1:我在第二天尝试了相同的地理位置示例,并对我的烦恼再次显示了错误的城市。我试图通过如上所述清除Chrome设置来实现它,并且这次该解决方案不起作用。但是,当我使用应用程序CCleaner和选定的清洁程序/应用程序并清除了所有Chrome数据(互联网缓存,互联网历史记录,Cookie和会话)时,该地理示例显示了正确的位置。我正在使用最新版本的Chrome。希望在未来的版本中它会更加一致。

更新2:我在以后尝试了上述过程,并且无法让它产生正确的位置。可能是因为地理位置现在使用我的IP和Google位置服务返回了我的互联网服务提供商的位置,而不是我的位置。当然这个位置是相当无用的。我的iPad返回正确位置的原因可能是因为它包含一个内置的GPS。 iPad 3G / 4G拥有内置GSM接收器芯片的GPS芯片,而只有WiFi的型号没有GPS。当iPad设置中的位置服务关闭时,通过GPS和IP的位置关闭。只有能够在我的iPad上关闭GPS并使用IP位置才有用,但我不确定这是否可行。

更新3.正如我所提到的,我在我的电脑中使用了一个WiFi棒。我注意到,当我查看可用的WiFi网络(具有查看可用无线网络)并且我是唯一的网络时,地理定位示例返回在不同城市中的位置,但是如果我的任何邻居具有在我的电脑,地理位置示例返回我的确切位置,在几米之内。即浏览器中的地理位置足够聪明,可以使用这些额外信息来定位我。



(我认为其他人对这个问题的回答完全在错误的轨道上。指出该位置在错误的城市显示,所以问题不在于位置的准确性)


When I use http://html5demos.com/geo to locate myself, it shows wrong location(wrong city) in FF and chrome. Any reason why this is happening

解决方案

I had the same problem using Chrome on Windows, but I got it to work, at least some of the time.

I was also using the example http://html5demos.com/geo

The location was not just inaccurate, it was also in the wrong city.

I tried the same example on my iPad (Safari) and there the location was correct. My iPad is using the same WiFi network as my PC, so I then knew it was not a problem with my ISP returning the wrong location, it was to do with the browser on my PC.

I got it to show the correct location in Chrome by going into the Chrome settings and clearing the cache and cookies.

It wasn't sufficient to just select in Chrome "Tools/Clear Browsing Data/Cookies & Cache", it was only after in Chrome I selected "Settings/Privacy/Content Settings/All Cookies and Site Data" and deleting all cookies, did the example show the correct location.

Update 1: I tried the same geolocation example the next day, and to my annoyance it was again showing the wrong city. I tried to get it to work by clearing the Chrome settings as described above and this time this solution didn't work. However, when I used the application CCleaner and selected Cleaner/Applications and cleared all of the Chrome data (internet cache, internet history, cookies and session) the geo example showed the correct location. I'm using the latest version of Chrome. Hopefully in future versions it will work more consistently.

Update 2: I tried the procedure above at a later date and couldn't get it to produce the correct location at all. It could be that the geolocation is now returning the location of my internet service provider, rather than my location, using my IP and Google Location Services. Of course this location is fairly useless. The reason why my iPad is returning the correct location is probably because it contains an inbuilt GPS. The iPad 3G / 4G have a GPS chip built in to the GSM receiver chip, whereas WiFi only models have no GPS. When 'location services' are switched off in the iPad settings, location via both GPS and IP are switched off. It would be useful just to be able to switch off the GPS on my iPad and just use IP location, but I'm not sure if that is possible.

Update 3. As I mentioned, I'm using a WiFi stick in my PC. I have noticed that when I look at the available WiFi networks (with View Available Wireless Networks) and mine is the only network, the geolocation example returns a location in a different city, but if any of my neighbours have a WiFi network in range of my PC, the geolocation example returns my exact location, to within a few metres. i.e. the geolocation in the browser is clever enough to use this extra information to locate me.

(I think the other answers to this question completely on the wrong track. The questioner states that the location was being shown in the wrong city, so the question is not to do with the location accuracy)

这篇关于在Google地图中显示错误位置的地理位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆