Commit Graph
14 Commits
Author SHA1 Message Date
Doug BorgandClaude Opus 4.6 2833906c68 Add centralized retry/fallback policy with hard-coded endpoints
Extract duplicated retry logic from OverpassService and RoutingService
into a shared resilience framework in service_policy.dart:

- ResiliencePolicy: configurable retries, backoff, and HTTP timeout
- executeWithFallback: retry loop with primary→fallback endpoint chain
- ErrorDisposition enum: abort / fallback / retry classification
- ServicePolicy + ServicePolicyResolver: per-service compliance rules
  (rate limits, caching, concurrency) for OSMF and third-party services
- ServiceRateLimiter: async semaphore-based concurrency and rate control

OverpassService now hits overpass.deflock.org first, falls back to
overpass-api.de. RoutingService hits api.dontgetflocked.com first,
falls back to alprwatch.org. Both use per-service error classifiers
to determine retry vs fallback vs abort behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 23:13:52 -06:00
5abcc58a78 Address PR review: truncate error response logs and close http client
- Gate full error response body logging behind kDebugMode; truncate to
  500 chars in release builds to avoid log noise and data exposure
- Add RoutingService.close() and call from NavigationState.dispose()

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 14:32:34 -07:00
Heath Dutton🕴️ 33ae6473bb pass viewbox to nominatim search for location-biased results 2026-01-29 10:42:56 -05:00
stopflock 4fba26ff55 Route distance timeout warning 2025-12-06 15:07:34 -06:00
stopflock 8c4f53ff7b nav UX tweaks 2025-12-05 16:36:04 -06:00
ALPR Watch 0ec53c3a11 Enable avoidance distance settings 2025-12-03 07:33:50 +01:00
ALPR Watch 9782352909 Start to change navigation to alprwatch API
This only covers the success path. Known todos:

* failure modes in routing
* developer documentation
* feature flags
2025-12-03 07:31:22 +01:00
stopflock 31f6960d44 Navigation start+end too close warning 2025-12-02 15:02:49 -06:00
stopflock dfb8eceaad Basic routing. Still some bugs. 2025-10-02 20:08:21 -05:00
stopflock 40c78ab3b7 Edge cases - UX bugs 2025-10-02 18:51:52 -05:00
stopflock 19de232484 Better pins, bugfixes 2025-10-02 18:29:17 -05:00
stopflock bac033528c UX actually close 2025-10-02 17:39:29 -05:00
stopflock 763fa31266 Moving the right direction I think 2025-10-02 17:23:17 -05:00
stopflock 408b52cdb0 UX bones 2025-10-02 16:50:07 -05:00