Skip to content

feat: load Flock/ALPR cameras when Overpass returns 502 - #63

Open
d8ahazard wants to merge 1 commit into
bilawalsidhu:mainfrom
d8ahazard:fix/alpr-flock-load
Open

feat: load Flock/ALPR cameras when Overpass returns 502#63
d8ahazard wants to merge 1 commit into
bilawalsidhu:mainfrom
d8ahazard:fix/alpr-flock-load

Conversation

@d8ahazard

@d8ahazard d8ahazard commented Aug 25, 2026

Copy link
Copy Markdown

Summary

  • Official main does not yet have the DeFlock OSM ALPR layer. This PR adds that layer and the client load path that makes Flock cameras actually appear when public Overpass mirrors 502 on new/wide bboxes.
  • Related to Add public ALPR / Flock Safety camera layer #14 (same layer, different head). This is not a re-submit of that PR's history; it is the smallest change against main that can show mapped ALPR/Flock locations. Prefer Add public ALPR / Flock Safety camera layer #14 if you want the original layer-only patch, or this one if you want the layer plus 502 resilience.
  • Queries snap to a small quantized box (~0.14°) and, when the Lannon / US-45 corridor is in view, reuse the known-good cached bbox 43.10,-88.28,43.24,-88.08. If Overpass is still down, a bundled ODbL snapshot of mapped nodes for that corridor is shown as stale fallback.
  • Locations and public OSM metadata only — no plate records, vendor accounts, or private Flock data.

Test plan

  • Enable the ALPR / Flock layer over the Lannon / US-45 corridor. Cameras should appear even if Overpass returns 502 (stale snapshot / cached bbox).
  • Pan nearby: queries should reuse a snapped bbox instead of aborting every frame.
  • Flock-tagged cameras render distinctly from other ALPR tags; a camera:direction tag draws a short facing line.
  • npm test (includes src/data/alprCameras.test.mjs).

Add the DeFlock OSM ALPR layer and query a small cached bbox (including the Lannon corridor extract) with a bundled snapshot fallback so cameras still appear when public mirrors 502.
@d8ahazard
d8ahazard force-pushed the fix/alpr-flock-load branch from 52957d9 to 9b1b119 Compare August 25, 2026 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant