Digi IX40 User Manual page 584

Table of Contents

Advertisement

Services
IX40 User Guide
i. Add a vertex:
(config service location geofence test_geofence)> add coordinates end
(config service location geofence test_geofence coordinates 0)>
ii. Set the latitude and longitude of the vertex:
(config service location geofence test_geofence coordinates 0)> latitude int
(config service location geofence test_geofence coordinates 0)> longitude int
(config service location geofence test_geofence coordinates 0)>
where int is:
For latitude, any integer between -90 and 90, with up to six decimal
l
places.
For longitude, any integer between -180 and 180, with up to six decimal
l
places.
iii. Configure additional vortices:
(config service location geofence test_geofence coordinates 0)> ..
(config service location geofence test_geofence coordinates)> add end
(config service location geofence test_geofence coordinates 1)> latitude int
(config service location geofence test_geofence coordinates 1)> longitude int
(config service location geofence test_geofence coordinates 1)>
where int is:
For latitude, any integer between -90 and 90, with up to six decimal
l
places.
For longitude, any integer between -180 and 180, with up to six decimal
l
places.
Repeat for each vortex of the polygon.
For example, to configure a square polygon around the Digi headquarters,
configure a polygon with four points:
(config service location geofence test_geofence)> add coordinates end
(config service location geofence test_geofence coordinates 0)> latitude 44.927220
(config service location geofence test_geofence coordinates 0)> longitude -
93.399200
(config service location geofence test_geofence coordinates 0)> ..
(config service location geofence test_geofence coordinates)> add end
(config service location geofence test_geofence coordinates 1)> latitude 44.927220
(config service location geofence test_geofence coordinates 1)> longitude -
93.39589
(config service location geofence test_geofence coordinates 1)> ..
(config service location geofence test_geofence coordinates)> add end
(config service location geofence test_geofence coordinates 2)> latitude 44.925161
(config service location geofence test_geofence coordinates 2)> longitude -
93.39589
(config service location geofence test_geofence coordinates 2)> ..
Location information
584

Advertisement

Table of Contents
loading

Table of Contents