Overview
geo_fence_utils is a production-ready Dart package for accurate geofencing operations. It provides Haversine-based distance calculations, supports both circular and polygon-shaped geofences, and enables batch processing for efficiency. With 96% test coverage, it ensures reliability across platforms including Android, iOS, Web, macOS, Windows, and Linux. Ideal for location-aware applications requiring real-time geofence detection and management.
Use cases
- Real-time location tracking
- Geofence-based alerts
- Delivery or ride-sharing apps
- Asset monitoring
- Outdoor activity tracking
- Smart home automation
Key features
- Haversine distance calculation
- Circle and polygon geofence detection
- Batch geofence operations
- High test coverage (96%)
- Cross-platform compatibility
- Lightweight and efficient
Suitable for
- Developers building location services
- Apps needing precise geofencing
- Teams prioritizing reliability and performance
- Projects requiring multi-platform support
- Applications with high-frequency location updates
Considerations
- Requires accurate GPS input for best results
- Polygon detection may impact performance with complex shapes
- Not suitable for offline-only use without additional setup
- Best paired with a location permission handler