configurable overpass query timeout; increased to 45s

This commit is contained in:
stopflock
2025-12-23 12:03:53 -06:00
parent a05e03567e
commit ae795a7607
2 changed files with 4 additions and 1 deletions

View File

@@ -63,6 +63,9 @@ const double kChangesetCloseBackoffMultiplier = 2.0;
// Navigation routing configuration
const Duration kNavigationRoutingTimeout = Duration(seconds: 90); // HTTP timeout for routing requests
// Overpass API configuration
const Duration kOverpassQueryTimeout = Duration(seconds: 45); // Timeout for Overpass API queries (was 25s hardcoded)
// Suspected locations CSV URL
const String kSuspectedLocationsCsvUrl = 'https://alprwatch.org/suspected-locations/deflock-latest.csv';

View File

@@ -218,7 +218,7 @@ String _buildOverpassQuery(LatLngBounds bounds, List<NodeProfile> profiles, int
}).join('\n ');
return '''
[out:json][timeout:25];
[out:json][timeout:${kOverpassQueryTimeout.inSeconds}];
(
$nodeClauses
);