trcr/lib/config.dart
2026-03-06 12:32:44 +11:00

24 lines
673 B
Dart

class AppConfig {
AppConfig._();
/// Traccar server URL
static const String serverUrl = 'https://c.track.rs';
/// Location accuracy: 'highest', 'high', 'medium', or 'low'
static const String accuracy = 'highest';
/// Location update interval in seconds
static const int intervalSeconds = 60;
/// Distance filter in meters (0 = disabled)
static const int distanceFilter = 0;
/// Whether to enable stop detection
static const bool stopDetection = false;
/// Whether to buffer locations when offline
static const bool buffer = true;
/// Fastest location update interval in seconds (Android)
static const int fastestIntervalSeconds = 30;
}