diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-06 10:36:16 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-06 10:36:16 +1300 |
commit | 313a51dbf23ca3ee0d5ac1d1dc37d0ff05cb2abd (patch) | |
tree | 50d3fe461d4d9d26f3e730b255001208b0b4a959 /src/org/traccar/reports/Events.java | |
parent | 395249ddf82bafec4ec1bf879a6d7282cbdc2ea9 (diff) | |
download | trackermap-server-313a51dbf23ca3ee0d5ac1d1dc37d0ff05cb2abd.tar.gz trackermap-server-313a51dbf23ca3ee0d5ac1d1dc37d0ff05cb2abd.tar.bz2 trackermap-server-313a51dbf23ca3ee0d5ac1d1dc37d0ff05cb2abd.zip |
Use distance units in Excel reports
Diffstat (limited to 'src/org/traccar/reports/Events.java')
-rw-r--r-- | src/org/traccar/reports/Events.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/reports/Events.java b/src/org/traccar/reports/Events.java index 0ad6ab309..9d82b97a5 100644 --- a/src/org/traccar/reports/Events.java +++ b/src/org/traccar/reports/Events.java @@ -116,6 +116,8 @@ public final class Events { jxlsContext.putVar("geofenceNames", geofenceNames); jxlsContext.putVar("from", from); jxlsContext.putVar("to", to); + jxlsContext.putVar("distanceUnit", ReportUtils.getDistanceUnit(userId)); + jxlsContext.putVar("speedUnit", ReportUtils.getSpeedUnit(userId)); jxlsContext.putVar("bracketsRegex", "[\\{\\}\"]"); Transformer transformer = TransformerFactory.createTransformer(inputStream, outputStream); List<Area> xlsAreas = new XlsCommentAreaBuilder(transformer).build(); |