是否有可能从设备GPS中检索GPRMC? [英] Is it possible to retrieve the GPRMC from device GPS?
问题描述
它有可能以任何方式吗?
<$ class =h2_lin>解决方案
不,这是不可能的。
第一个GPRMC是来自基于文本的NMEA protocoll的消息, ,每个芯片制造商都以不同的方式解读它。
在大多数专业设备上,使用芯片制造商提供的二进制协议。
即使Apple在内部使用NMEA Protokoll与芯片进行通信,您也无法访问该消息。
然而,可以在CLLocationManager提供的CLLocation中获得GPRMC消息的数据。
让我们看看RMC的属性:
抵消。
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屋!