Is it possible to retrieve the GPRMC from device GPS?(是否可以从设备 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:是否可以从设备 GPS 中检索 GPRMC?


- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01
- Android - 拆分 Drawable 2022-01-01
- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01
- android 4中的android RadioButton问题 2022-01-01