diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-10-02 16:44:54 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-10-02 16:44:54 -0400 |
commit | 466a626ed1bda0680da82d21cbb31f637efa9a3e (patch) | |
tree | 5dbdefb3c12d02ad02e801a531c5b2fa96d6f308 /ais_json.c | |
parent | 0f0b771836516a762bc0a1649cd378c371bad36c (diff) | |
download | gpsd-466a626ed1bda0680da82d21cbb31f637efa9a3e.tar.gz |
Support Inland AIS ship static and voyage-related data.
Diffstat (limited to 'ais_json.c')
-rw-r--r-- | ais_json.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -365,6 +365,12 @@ int json_ais_read(const char *buf, imo = true; } } + else if (strstr(buf, "\"dac\":200,") != NULL) { + if (strstr(buf, "\"fid\":10,") != NULL) { + status = json_read_object(buf, json_ais8_fid10, endptr); + imo = true; + } + } if (!imo) { status = json_read_object(buf, json_ais8, endptr); if (status == 0) |