// 1. Create a geofence using Wialon SDK const geofence = name: "Warehouse Zone", type: "polygon", coordinates: [[37.7749, -122.4194], ...], flags: 1 // 1 = entry, 2 = exit, 3 = both ;
| Feature | Rating | Notes | | :--- | :--- | :--- | | | 8/10 | Comprehensive, but can be dense for beginners. | | Flexibility | 9/10 | Can handle almost any IoT tracking scenario. | | Ease of Use | 6/10 | Requires understanding of GPS domain logic. | | Performance | 9/10 | WebSocket implementation is solid. | | Ecosystem | 10/10 | Massive hardware support library. |
CREATE TABLE geofence_alerts ( id UUID PRIMARY KEY, unit_id VARCHAR(50), geofence_name VARCHAR(100), event_type VARCHAR(10), -- 'enter' or 'exit' timestamp BIGINT, position_lat DOUBLE, position_lng DOUBLE, notification_sent BOOLEAN DEFAULT false );
| Wialon API Method | Purpose | |------------------|---------| | core/search_items | Find units/resources | | resource/update_geofence | Create/edit geofences | | unit/calc_geofences | Check if unit inside geofence | | avl_evts | Subscribe to real-time events |