在桌面浏览器中访问用户的 GPS 设备有哪些选项?
在阅读了Firefox 的地理定位功能后,不使用GPS,我想知道浏览器需要什么(IE和/或 Firefox)能够访问连接到普通笔记本电脑/台式计算机的 GPS 设备?
到目前为止,我发现似乎能够做到这一点的唯一技术是 Google Gears ' 地理定位 API 或设备特定的 API,例如此 Garmin 插件。
还有其他/更好的解决方案吗?浏览器插件/扩展程序非常适合此目的。
更新:我不介意提升浏览器的安全权限、使用插件等。
更新:“Firefox 3.6 (Gecko 1.9.2) 添加了对使用Linux 上用于地理定位的 GPSD(GPS 守护进程)服务”:https://developer.mozilla.org/en/使用地理位置
After reading about Firefox's Geolocation functionality, which doesn't use GPS, I'm wondering what it would take for a browser (IE and/or Firefox) to be able to access a GPS device connected to a normal laptop/desktop computer?
So far the only technology I've found that seems to be able to do this is Google Gears' Geolocation API or device specific APIs such as this Garmin plugin.
Are there any other/better solutions? Browser plugins/extensions are fine for this purpose.
Update: I don't mind elevating the security privileges of the browser, using a plugin etc.
Update: "Firefox 3.6 (Gecko 1.9.2) added support for using the GPSD (GPS daemon) service for geolocation on Linux": https://developer.mozilla.org/en/using_geolocation
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我不知道现在有哪些浏览器支持此功能,但是 W3C 地理定位API 的设计方式使得浏览器可以使用 GPS 来确定您的位置。 (目前,我相信唯一真正使用 GPS 的浏览器是 iPhone 3.0 上的 Mobile Safari。)
在 Windows 7 中,定位平台可以使用任意数量的定位提供商插件,包括用于 GPS 设备的插件。我不相信 IE8 正式支持 W3C Geolocation API,但有实验版本支持它,所以这可能很快就会发生。
I don't know of any browsers that support this right now, but the W3C Geolocation API is designed in such a way that a browser could use GPS to determine your location. (Right now I believe the only browser that actually does use GPS is Mobile Safari on iPhone 3.0.)
In Windows 7, the Location Platform can use any number of location provider plug-ins, including those for GPS devices. I don't believe IE8 officially has support for the W3C Geolocation API, but there are experimental versions that have supported it, so that may happen soon.
如果您尝试实现一些在移动平台上运行的基于 Web 的软件,您可以考虑为侦听端口 80 的 GPS 编写自己的驱动程序,然后使用 AJAX 小程序客户端来查询 GPS 驱动程序以获取当前的 GPS 坐标。坐标。
If you are trying to implement some web based software that runs on a mobile platform you could consider writing your own driver for the GPS that listens on port 80 and then use an AJAX applet client side to query the GPS driver for the current GPS co-ordinates.
这可能无法回答您的问题,但 GPSd 是我遇到过的最有用的 GPS 软件包。遗憾的是,它不支持任何 Windows 版本。
This probably doesn't answer your question, but GPSd is the most helpful GPS package I've encountered. Alas, it doesn't support any flavor of Windows.
看起来这个 浏览器中的 GPS 工具将让 IE 实际上获得通过 JavaScript 从连接的 GPS 获取 GPS 坐标。
Looks like this GPS in Browser tool will let IE actually get GPS coordinates via javascript from a connected GPS.