是否可以从设备 GPS 中检索 GPRMC?设备、GPS、GPRMC

2023-09-07 04:50:59 作者:星辰不辞烟火

我正在寻找一种从设备 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 调用.
 
精彩推荐
图片推荐