Jump to content

Geofence: Difference between revisions

From Transight Wiki
No edit summary
Blanked the page
Tag: Blanking
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Introduction ==
Geofencing is a key feature in GPS tracking. It allows users to define virtual boundaries on a map. When a vehicle or asset enters or exits these boundaries, the system can trigger alerts or actions.


== How Geofence Works ==
* A geofence can be circular or polygonal.
* The GPS tracker regularly checks its position via satellites.
* The system compares the location against the defined geofence.
* When the boundary is crossed, it logs or notifies the event.
== Getting Coordinates from Google Maps ==
# Open [https://maps.google.com Google Maps].
# Search for your location (e.g., office, school).
# Right-click the spot and select '''"What’s here?"'''
# Copy the decimal coordinates shown (e.g., 10.0556255, 76.3544891).
Use these coordinates:
* As the center for circular geofences.
* As corners for polygon geofences (3–6 recommended points).
== Geofence Command Format ==
* '''Status''': 1 = Enable, 0 = Disable
* '''Geofence ID''': Unique number (e.g., 1313)
* '''Alert Type''': 1 = Entry, 2 = Exit, 3 = Both
* '''Shape''': 0 = Circle, 1 = Polygon
* '''Latitude/Longitude''': Decimal format
* '''Radius''': In meters (only for circular type)
* '''#''': Parameter separator
* '''&''': Required at end of polygon commands
== Circular Geofence Example ==
Objective: Create a 1000-meter circular geofence at 10.0556255, 76.3544891
<pre>
SET CUGF:1-1313-3-0#10.0556255-76.3544891#1000
</pre>
Response:
<pre>
IMEI: 862942074896044
Command: SET CUGF:1-1313-3-0#10.0556255-76.3544891#1000
Response: Error : 0
</pre>
== Polygon Geofence Example ==
Objective: Create a polygon geofence with 4 corner points.
Coordinates:
* 10.0535097, 76.334262
* 10.0504267, 76.3328855
* 10.0474386, 76.3439598
* 10.0503084, 76.3437023
* (Repeat the first point to close the shape)
Command:
<pre>
SET CUGF:1-1777-3-1#10.0535097-76.334262#10.0504267-76.3328855#10.0474386-76.3439598#10.0503084-76.3437023#10.0535097-76.334262&
</pre>
== Save the Configuration ==
After setting geofences, save to memory:
<pre>
SET TSMR:2
</pre>
== Check Configured Geofences ==
To view saved geofences:
<pre>
GET CUGF
</pre>
== Final Checklist ==
* Confirm GPS fix is available on device.
* Move the vehicle inside and outside geofence area.
* Verify alerts or logs are triggered correctly.

Latest revision as of 06:27, 28 June 2025