diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-08-28 18:31:19 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-08-28 18:31:19 +0000 |
commit | 254ce807d284ed470b2e0be5398a2532454b3b6e (patch) | |
tree | a16f384a98caba4dc20b45693a0a2294f02128a9 /rtcm2_json.c | |
parent | 2094619ca3b2e9973a8623d4507990a412f8cbfd (diff) | |
download | gpsd-254ce807d284ed470b2e0be5398a2532454b3b6e.tar.gz |
Regularize some JSON attribute names.
It's useful for the attribute vocabulary to be consistent across data
classes, where possible.
Diffstat (limited to 'rtcm2_json.c')
-rw-r--r-- | rtcm2_json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rtcm2_json.c b/rtcm2_json.c index 878fc024..7f38e519 100644 --- a/rtcm2_json.c +++ b/rtcm2_json.c @@ -122,8 +122,8 @@ int json_rtcm2_read(const char *buf, }; const struct json_attr_t rtcm7_satellite[] = { - {"latitude", real, STRUCTOBJECT(struct station_t, latitude)}, - {"longitude", real, STRUCTOBJECT(struct station_t, longitude)}, + {"lat", real, STRUCTOBJECT(struct station_t, latitude)}, + {"lon", real, STRUCTOBJECT(struct station_t, longitude)}, {"range", uinteger, STRUCTOBJECT(struct station_t, range)}, {"frequency", real, STRUCTOBJECT(struct station_t, frequency)}, {"health", uinteger, STRUCTOBJECT(struct station_t, health)}, |