summaryrefslogtreecommitdiff
path: root/ais_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-02 16:44:54 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-02 16:44:54 -0400
commit466a626ed1bda0680da82d21cbb31f637efa9a3e (patch)
tree5dbdefb3c12d02ad02e801a531c5b2fa96d6f308 /ais_json.c
parent0f0b771836516a762bc0a1649cd378c371bad36c (diff)
downloadgpsd-466a626ed1bda0680da82d21cbb31f637efa9a3e.tar.gz
Support Inland AIS ship static and voyage-related data.
Diffstat (limited to 'ais_json.c')
-rw-r--r--ais_json.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ais_json.c b/ais_json.c
index b792c251..827f3264 100644
--- a/ais_json.c
+++ b/ais_json.c
@@ -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)