Chrome如何知道我的地理位置? [英] How does Chrome know my geolocation?
本文介绍了Chrome如何知道我的地理位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
地理位置可以根据以下公式计算:
- GPS(如果可用)
- 可用的Wi-Fi网络和信号强度
- 塔和信号强度
- IP地址查询
- 可用的Wi-Fi网络和信号强度
请参阅 W3C Geolocaton API 和 Google Gears API (Chrome / W3C地理位置API基于此)。
Chromium的地理定位源代码可以在线查看。
Chrome seems to be very accurate in detecting my location. How does it do it? Can you point me to the source code?
解决方案
Geolocation can be calculated based on:
- GPS (if available)
- Available wi-fi networks and signal strengths
- Available cell towers and signal strengths
- IP Address lookup
See the W3C Geolocaton API and Google Gears API (which Chrome's/W3C Geolocation API is based on).
Chromium's geolocation source code can be viewed online.
这篇关于Chrome如何知道我的地理位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文