是否可以在没有任何 GPRS 连接的情况下通过 API 获取移动设备中的 GPS 信息?

发布于 2024-07-30 05:02:47 字数 123 浏览 4 评论 0原文

是否可以在没有任何 GPRS 连接的情况下通过 API 获取移动设备中的 GPS 信息?

已编辑

是,例如在 Java ME 平台或 Apple iPhone 上

Is it possible to get GPS information in a mobile device through APIs without having any GPRS connectivity?

Edited

Yes, for example on the Java ME platform or Apple iPhone

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

阳光下的泡沫是彩色的 2024-08-06 05:02:47

是的; 如果您使用的设备内置 GPS 硬件,并且该设备上的软件开发使您可以通过软件访问该硬件。

这可以使用内置 API 来打开 COM 端口。 然后,您只需打开连接了 GPS 硬件的端口(设备内的内部 GPS 接收器通常连接到固定的 COM 端口号)即可开始解释(通常)NMEA GPS 接收器发送的字符串。

或者设备可能具有更具体的 GPS 相关 API,例如 GPS 中间驱动程序 在 Windows Mobile 5+ 中,允许操作系统与任何 GPS 接收器(内置或通过电缆或蓝牙连接到 COM 端口)通信,并允许多个应用程序同时与 GPS 数据交互。

PS

GPS 与 GPRS 本身无关。 您可能已经有了这个想法,因为 A-GPS 使用电信网络信息和/或数据连接(如 GPRS、EDGE、UMTS、WLAN 等)来下载包含 GPS 卫星位置信息的小文件。

然后,这些数据将使您的设备在检索到的数据当前的时间段内(我相信通常是几天到一周)缩短 GPS 获取时间,因为它不仅仅需要查看它可以接收哪些 GPS 信号并有意义其中,但它有很多关于 GPS 星座的先验知识,这些星座应该在你可以看到的天空部分的轨道上。

Yes; if you are on a device that has GPS hardware in it and software development on the device gives you access to that hardware from your software.

This can be using a built in API for opening a COM port. You then just need to open the port that has the GPS hardware connected to (internal GPS receivers inside the device are often connected to a fixed COM port number) start interpreting the (often) NMEA strings that the GPS receiver is sending out.

Or perhaps the device has more specific GPS related APIs, like the GPS intermediate driver in Windows Mobile 5+ that lets the OS talk to any GPS receiver (either built in, or connected via cable or bluetooth to a COM port) and lets multiple applications concurrently interact with the GPS data.

P.S.

GPS has nothing to do with GPRS per se. You might have gotten that idea because of A-GPS which uses telecom network information and/or a dataconnection (like GPRS, EDGE, UMTS, WLAN, whatever) to download a small file with information about the location of GPS satellites.

This data will then enable your device shorter GPS aquisition times within the time period that this retrieved data is current - often a couple of days to a week I believe - because it does not just need to see what GPS signals it can receive and make sense of that, but it has a lot of prior knowledge about the GPS constellation that should be in orbit in the part of the sky you can see.

划一舟意中人 2024-08-06 05:02:47

GPRS 是一种双向数据传输,使您能够访问互联网,而 GPS 只是接收器,正如 peSHIr 已经提到的,它与 GPRS 无关。 GPS接收器接收来自多个卫星的信号并根据时间差计算位置。

无论如何...只有当您想使用任何网络服务进行反向地理定位或您想使用谷歌地图或任何其他定位服务时,您才需要 GPRS 或任何其他互联网连接。 但仅用于接收(计算)GPS 坐标本身就足够了。

GPRS is a two-way data transmission which enables you to access the iternet while the GPS is just a receiver and as peSHIr already mentioned it has nothing to do with GPRS. GPS receiver receives the signals from multiple satellites and calculates the location from time differences.

Anyway... you need GPRS or any other internet connection only if you want to use any web service for reverse geolocation or you want to use google maps or any other location service. But just for receiving (calculating) the coordinates GPS by itself is enough.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文