使用 gpsdecode 解码 AIVM 句子后,我有一堆 json 结构,每个结构都包含消息类型的所有数据,例如:
{"class":"AIS","device":"stdin","type":1,"repeat":0,"mmsi":224047690,"scaled":true,"status":15,"status_text":"Not defined","turn":"nan","speed":0.0,"accuracy":false,"lon":-8.7296,"lat":42.2401,"course":231.9,"heading":511,"second":36,"maneuver":0,"raim":true,"radio":114776}
{"class":"AIS","device":"stdin","type":4,"repeat":0,"mmsi":2240998,"scaled":true,"timestamp":"2018-05-19T16:34:35Z","accuracy":true,"lon":-8.7877,"lat":42.1717,"epfd":7,"epfd_text":"Surveyed","raim":false,"radio":165192}
我的问题是位置消息(类型 1、2、3)没有完整的 UTC,只是在 0-60 之间的几秒钟内的引用,这是获取此消息的完整 UTC 的正确方法吗?