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

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

问题描述

我正在寻找一种从设备 GPS 获取 GPRMC 信息的方法.

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

有没有可能?

推荐答案

不,不可能.
首先 GPRMC 是来自基于文本的 NMEA 协议的消息,它是一个没有很好定义的协议,每个芯片制造商对它的解释不同.
对于大多数专业设备,使用芯片制造商提供的二进制协议.即使 Apple 在内部使用 NMEA Protokoll 与芯片通信,您也无法访问该消息.

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.

但是 GPRMC 消息的数据在 CLLocationManager 下发的 CLLocation 中是可用的.

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

让我们看看RMC的属性:

Lets look at the attributes of RMC:

  • 时间:不,不是真的,苹果可能会按当地时间校正时间,或者通过用户校正偏移量抵消.
  • validFlag:在 CLLocation 中为是
  • 纬度:是的
  • 经度:是的
  • 速度:是的
  • 课程:是(CLLocation.course)
  • 磁性变化:可以,但需要 API 调用.

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

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