是否有可能从设备GPS中检索GPRMC? [英] Is it possible to retrieve the GPRMC from device GPS?

查看:167
本文介绍了是否有可能从设备GPS中检索GPRMC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



它有可能以任何方式吗?


<$ class =h2_lin>解决方案

不,这是不可能的。

第一个GPRMC是来自基于文本的NMEA protocoll的消息, ,每个芯片制造商都以不同的方式解读它。

在大多数专业设备上,使用芯片制造商提供的二进制协议。
即使Apple在内部使用NMEA Protokoll与芯片进行通信,您也无法访问该消息。


然而,可以在CLLocationManager提供的CLLocation中获得GPRMC消息的数据。



让我们看看RMC的属性:


  • 时间:没有,真的,苹果可能会按当地时间更正时间,或者由用户更正抵消
    抵消。

  • validFlag:在CLLocation中是

  • latitude:是

  • 经度:是

  • 速度:是

  • 当然:是(CLLocation.course)
  • 磁性变化:是可能的,但需要API调用。


I 'm looking for a way to obtain the GPRMC info from device GPS.

Is it even possible in any way?

解决方案

No, it is not possible.
First GPRMC is a message from the text based NMEA protocoll, which is a not well defined protocoll, each chip manufacturer interprets it differently.
Therfore most professional devices, use the binary protocoll from the Chip manufacturer. And even when Apple woud internally use the NMEA Protokoll to communicate with the chip, you would not have any access to that messages.

However the data of the GPRMC message is available in CLLocation delivered by CLLocationManager.

Lets look at the attributes of RMC:

  • time: no not really, apple may correct the time by local time, or by a user correction offset offset.
  • validFlag: yes in CLLocation
  • latitude: yes
  • longitude: yes
  • speed: yes
  • course: yes (CLLocation.course)
  • Magnetic Variation: yes possible, but needs an API call.

这篇关于是否有可能从设备GPS中检索GPRMC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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