Skip to content

Commit 484b8a0

Browse files
committed
Add geofence trigger attrs to zone and service area models
1 parent 999e7c9 commit 484b8a0

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

addon/models/service-area.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ export default class ServiceAreaModel extends Model {
1919
@attr('string') color;
2020
@attr('string') stroke_color;
2121
@attr('string') status;
22+
@attr('boolean') trigger_on_entry;
23+
@attr('boolean') trigger_on_exit;
24+
@attr('number') dwell_threshold_minutes;
25+
@attr('number') speed_limit_kmh;
2226
@attr('multi-polygon') border;
2327
@attr('point') center;
2428

addon/models/zone.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ export default class ZoneModel extends Model {
1717
@attr('string') color;
1818
@attr('string') stroke_color;
1919
@attr('string') status;
20+
@attr('boolean') trigger_on_entry;
21+
@attr('boolean') trigger_on_exit;
22+
@attr('number') dwell_threshold_minutes;
23+
@attr('number') speed_limit_kmh;
2024
@attr('polygon') border;
2125
@attr('point') center;
2226

0 commit comments

Comments
 (0)