aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/attributes
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-03-25 07:35:36 -0700
committerAnton Tananaev <anton@traccar.org>2023-03-25 07:35:36 -0700
commite06c03ae5b4bac3a1fea26f1cdf67e510a2f873b (patch)
tree88e66b7c573d61f4d539b2c26410c622e1aa5c71 /modern/src/common/attributes
parentfe1220344f008897f2f463756e555ea73ba43fcb (diff)
downloadtrackermap-web-e06c03ae5b4bac3a1fea26f1cdf67e510a2f873b.tar.gz
trackermap-web-e06c03ae5b4bac3a1fea26f1cdf67e510a2f873b.tar.bz2
trackermap-web-e06c03ae5b4bac3a1fea26f1cdf67e510a2f873b.zip
Add driving time
Diffstat (limited to 'modern/src/common/attributes')
-rw-r--r--modern/src/common/attributes/usePositionAttributes.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/modern/src/common/attributes/usePositionAttributes.js b/modern/src/common/attributes/usePositionAttributes.js
index 9e889b09..81497938 100644
--- a/modern/src/common/attributes/usePositionAttributes.js
+++ b/modern/src/common/attributes/usePositionAttributes.js
@@ -344,6 +344,11 @@ export default (t) => useMemo(() => ({
name: t('positionCard'),
type: 'string',
},
+ drivingTime: {
+ name: t('positionDrivingTime'),
+ type: 'number',
+ dataType: 'hours',
+ },
color: {
name: t('attributeColor'),
type: 'string',