diff options
author | Leandro Silva Ferreira <leandrosilvaferreira@gmail.com> | 2012-08-15 11:04:16 -0400 |
---|---|---|
committer | Leandro Silva Ferreira <leandrosilvaferreira@gmail.com> | 2012-08-15 11:04:16 -0400 |
commit | 3a78e641bacccaca181bbd292f0f2f0d579b5caf (patch) | |
tree | 5655a02dbcbb160bdc8b15551109892acfefaa99 /src/org/traccar/http | |
parent | 704decd15f70a0251675041826c472b7326ae40c (diff) | |
download | trackermap-server-3a78e641bacccaca181bbd292f0f2f0d579b5caf.tar.gz trackermap-server-3a78e641bacccaca181bbd292f0f2f0d579b5caf.tar.bz2 trackermap-server-3a78e641bacccaca181bbd292f0f2f0d579b5caf.zip |
Changes to save de address field from geocoding and show it on markers
at
the map and on position's grid
Diffstat (limited to 'src/org/traccar/http')
-rw-r--r-- | src/org/traccar/http/WebServer.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/traccar/http/WebServer.java b/src/org/traccar/http/WebServer.java index e379a0a9a..5fac8ff65 100644 --- a/src/org/traccar/http/WebServer.java +++ b/src/org/traccar/http/WebServer.java @@ -146,7 +146,7 @@ public class WebServer { Iterator<Position> i = dataManager.getPositions(Long.valueOf(deviceId)).iterator(); while (i.hasNext()) { Position position = i.next(); - out.format("{'device_id':%d,'time':'%s','valid':%b,'latitude':%s,'longitude':%s,'speed':%s,'course':%s,'mode':%d}", + out.format("{'device_id':%d,'time':'%s','valid':%b,'latitude':%s,'longitude':%s,'speed':%s,'course':%s,'mode':%d,'address':'%s'}", position.getDeviceId(), position.getTimeFormated(), position.getValid(), @@ -154,7 +154,8 @@ public class WebServer { position.getLongitude().toString(), position.getSpeed().toString(), position.getCourse().toString(), - position.getMode()); + position.getMode(), + position.getAddress()); if (i.hasNext()) out.print(","); } } |