Naxer
Tech
Limited
18 |
P a g e
Geo Fence
Geo fence is very much like a virtual fence and has variety of uses. Multiple Geo fences (up to 5) can be set on the device.
Whenever device crosses the Geofence boundary, it will raise alert.
In this section we will implement the Geo Fence feature on the unit.
GEOPOLY – Polygonal Geo fence
Format
%GEOPOLY,Number,Type,nPoints,Lat1,Lon1;...(next coordinates) ..;ID
%GEOPOLY
Setup Polygonal Geofence.
(Max. 20point)
Number
Number of geo fence. It start from 1.
Trigger type
0 = Trigger when inside, 1 = Trigger when outside, 3 = Disable.
nPoints
Number of points geofence consists of.
Lat1
Latitude of 1
st
point
Long1
Longitude of 1
st
point.
ID (Optional)
ID is any number ID assigned to the geofence. This can be used to identify geo fence when
retrieving it using “GEO?” command.
Note:
Coordinate pair is separated by semi-colons and cannot exceed 20 points.
Example of 5 vertex
polygon
%GEOPOLY,1,1,5;3138.9223,7416.7139;3135.8352,7427.7551;3127.5124,7426.8900;3123.4695,740
9.5041;3131.8333,7415.2307;123
Type
1 = Alert when leave the area (OUT)
Number
1 (First Geo fence)
nPoints
5
Lat1
Latitude
3138.9223
Log1
Longitude
7416.7139
ID (optional)
123
If Geo fence violation occurs, the unit will send GPS data and status to Control Base via GPRS or SMS.
It will also send alert to all the authorized contact numbers set in device.
GEO RECTANGULAR
Format
%GEO,GEOID,Y1,NS,X1,EW,Y2,NS,X2,EW,InOut
%GEO
Setup Geo fence.
(Max. 4 areas)
GEOID
Geo fence number.
(Max. 4 numbers)
Y1,NS
Longitude co-ordinates left/ up, North-South direction.
X1,EW
Latitude co-ordinates left/ up, East-West direction.
Y2,NS
Longitude co-ordinates, North-South right/ down.
X2,EW
Latitude co-ordinates, East-West right/ down.
Trigger type
0 = Trigger when inside, 1 = Trigger when outside, 3 = Disable.