Improved Google map interace: select planes and see details.

This commit is contained in:
antirez
2013-01-27 01:37:05 +01:00
parent 27e3743d87
commit e9e07e0778
2 changed files with 86 additions and 5 deletions

View File

@ -2142,8 +2142,10 @@ char *aircraftsToJson(int *len) {
if (a->lat != 0 && a->lon != 0) {
l = snprintf(p,buflen,
"{\"hex\":\"%s\", \"flight\":\"%s\", \"lat\":%f, "
"\"lon\":%f, \"altitude\":%d, \"track\":%d},\n",
a->hexaddr, a->flight, a->lat, a->lon, a->altitude, a->track);
"\"lon\":%f, \"altitude\":%d, \"track\":%d, "
"\"speed\":%d},\n",
a->hexaddr, a->flight, a->lat, a->lon, a->altitude, a->track,
a->speed);
p += l; buflen -= l;
/* Resize if needed. */
if (buflen < 256) {