aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-12-31 12:03:47 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-12-31 12:03:47 +1300
commitdc2ceba479c50d34a3d4c305edaf938a2df391a9 (patch)
tree7dbe58fbd356ac1b8fdd098eef9e404aa36786a8 /web
parenta4b38c4e95fa5aa7533db945ea2f8200102a4ff4 (diff)
downloadetbsa-traccar-web-dc2ceba479c50d34a3d4c305edaf938a2df391a9.tar.gz
etbsa-traccar-web-dc2ceba479c50d34a3d4c305edaf938a2df391a9.tar.bz2
etbsa-traccar-web-dc2ceba479c50d34a3d4c305edaf938a2df391a9.zip
Show accuracy in the web interface
Diffstat (limited to 'web')
-rw-r--r--web/app/AttributeFormatter.js2
-rw-r--r--web/app/model/Position.js3
-rw-r--r--web/app/view/StateController.js2
-rw-r--r--web/l10n/en.json1
4 files changed, 6 insertions, 2 deletions
diff --git a/web/app/AttributeFormatter.js b/web/app/AttributeFormatter.js
index d3c2812..2142465 100644
--- a/web/app/AttributeFormatter.js
+++ b/web/app/AttributeFormatter.js
@@ -76,7 +76,7 @@ Ext.define('Traccar.AttributeFormatter', {
return this.speedFormatter;
} else if (key === 'course') {
return this.courseFormatter;
- } else if (key === 'distance' || key === 'odometer' || key === 'totalDistance') {
+ } else if (key === 'distance' || key === 'odometer' || key === 'totalDistance' || key === 'accuracy') {
return this.distanceFormatter;
} else if (key === 'hours') {
return this.hoursFormatter;
diff --git a/web/app/model/Position.js b/web/app/model/Position.js
index 362ca58..3b85a1b 100644
--- a/web/app/model/Position.js
+++ b/web/app/model/Position.js
@@ -44,6 +44,9 @@ Ext.define('Traccar.model.Position', {
name: 'valid',
type: 'boolean'
}, {
+ name: 'accuracy',
+ type: 'float'
+ }, {
name: 'latitude',
type: 'float'
}, {
diff --git a/web/app/view/StateController.js b/web/app/view/StateController.js
index bef54d2..f9be113 100644
--- a/web/app/view/StateController.js
+++ b/web/app/view/StateController.js
@@ -61,7 +61,7 @@ Ext.define('Traccar.view.StateController', {
keys: (function () {
var i, list, result;
result = {};
- list = ['fixTime', 'latitude', 'longitude', 'valid', 'altitude', 'speed', 'course', 'address', 'protocol'];
+ list = ['fixTime', 'latitude', 'longitude', 'valid', 'accuracy', 'altitude', 'speed', 'course', 'address', 'protocol'];
for (i = 0; i < list.length; i++) {
result[list[i]] = {
priority: i,
diff --git a/web/l10n/en.json b/web/l10n/en.json
index c760ea2..e7b0574 100644
--- a/web/l10n/en.json
+++ b/web/l10n/en.json
@@ -97,6 +97,7 @@
"reportClear": "Clear",
"positionFixTime": "Time",
"positionValid": "Valid",
+ "positionAccuracy": "Accuracy",
"positionLatitude": "Latitude",
"positionLongitude": "Longitude",
"positionAltitude": "Altitude",