我正在使用 gears.js和 geo.js在寻找用户的地理位置方面试图涵盖所有理由。因此,如果用户使用的是低于 IE9 的东西,我可能会提示安装 Google Gears,所以我知道对于桌面,IE7 + 已被覆盖。
对于我正在查看的移动设备 geo 其中涵盖了相当多的移动设备。
我想知道是否有任何东西可以解释 WP7 地理定位以及使用 JavaScript,以及是否有更好的方法来处理所有设备的 GeoLocation。
不完全确定 Google Gears 如何在 IE7/8 上工作,所以任何详细说明都很好。 (尽管对于不支持地理定位的浏览器,我不认为 Gears 是唯一/最好的前进方式,所以对此进行任何更正都可以!)
最佳答案
我今天遇到了这个:http://geosenseforwindows.com/它基本上为 Windows 7 传感器 API 提供了基于 Wifi 的地理定位:
Geosense is a Windows Sensor that provides the Location and Sensors platform in Windows 7 with accurate and reasonably ubiquitous positioning information without requiring or the assistance of GPS hardware, enabling more practical location-based applications and scenarios on Windows 7.
不幸的是,我不认为 IE 可以访问该传感器 API,而无需借助您的 javascript 中的 COM 调用。
我们还使用免费/商业 GpsGate ,它允许 Windows 机器上的任何浏览器直接访问计算机上的真实硬件 GPS 设备。
关于html - 所有移动/桌面设备的地理定位,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5228446/