Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

Merge branch 'main' into feat/webapp-icons

Sameh Khamisa478f26eb941
diff --cc CHANGELOG.md
index 0c07f3c64,58589e626..d6d11d09b
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -1,13 -1,75 +1,83 @@@
# Changelog
+- Ship a web app manifest and raster home-screen icons, so adding the app to a
+ phone home screen or installing it on desktop uses the God's Eye View mark
+ instead of a blank tile. The icons are generated from `public/logo.svg` by
+ `node scripts/generate-icons.mjs` and committed, so a plain `vite build` needs
+ no image toolchain. The existing SVG favicon still serves the browser tab.
+ Manifest paths are relative to the manifest, so a build served under a path
+ prefix installs and launches inside that prefix.
+
+ - Add WSDOT highway cameras (Washington State) as a keyless CCTV source pack:
+ WSDOT's official Travel Center camera layer, with frames registered only on
+ WSDOT's own image host (partner-hosted cameras such as Oregon DOT and City of
+ Seattle are skipped). Cameras with a single cardinal `CompassDirection` get
+ a high-confidence heading; `B` (both directions), `O`, and unset directions
+ use the shared id-hash fallback at low confidence. By default the 250
+ cameras nearest Seattle and Spokane load; `CCTV_WSDOT_MAX_SOURCES` sets the
+ cap (8–1,200) and `CCTV_WSDOT_ENABLED=0` turns the pack off (bassem chagra,
+ #644).
+
+ - Refuse still-image cameras on the CCTV media relay. `/api/cctv/media` is the
+ live-feed route, but it also relayed any registered still camera through an
+ ordinary fetch that followed redirects to any host, passed through whatever
+ content type came back and had no cap on the body, bypassing every protection
+ `/api/cctv/frame` applies to the same URL. Only HLS, MP4, WebM and MJPEG
+ feeds are relayed now; a still camera, or an unknown id, gets a JSON 404
+ without an upstream request and is served only through `/api/cctv/frame`.
+ The client already loaded stills through `/frame`, so nothing it requests
+ changes.
+
+ - Add Lithuania's public Via Lietuva / Eismoinfo road cameras to CCTV, with published coordinates, on-demand snapshots, attribution and bounded catalog requests. No API key is required. The pack is opt-in (`CCTV_LITHUANIA_ENABLED=1`) because its camera endpoints are the eismoinfo.lt website backend, not a service listed in Via Lietuva's open-data statement, so the licence for the photos is unconfirmed.
+
+ - Add King County road cameras (Washington State) as a keyless CCTV source
+ pack: one public King County DOT ArcGIS layer, fetched with an explicit field
+ list so its staff-name columns are never requested, and frames pinned to the
+ county's own image host and upgraded to HTTPS. WSDOT-owned rows are skipped,
+ and city-owned cameras the county hosts credit their owner. The layer
+ publishes no facing, so headings use the shared id-hash fallback at low
+ confidence. It does publish each camera's hardware, which is served on
+ `/api/cctv/sources` as `model` and `manufacturer`. `CCTV_KINGCOUNTY_MAX_SOURCES`
+ sets the cap and `CCTV_KINGCOUNTY_ENABLED=0` turns the pack off
+ (bassem chagra, #645).
+
+ - Add City of Toronto RESCU traffic cameras as a keyless CCTV source pack: the
+ ~336 municipal cameras the Ontario 511 pack does not carry — downtown
+ arterials plus the Gardiner, DVP, Allen and Lake Shore. The list is the
+ City's own open data feed; frames are built from the documented
+ `loc####.jpg` convention and a digits-only camera number, so the frame proxy
+ is pinned to the portal origin by construction. The dataset publishes no
+ camera facing — its `D1`-`D4` fields describe static 2016 comparison images,
+ not the live pan-tilt-zoom frame — so headings use the shared id-hash
+ fallback at low confidence and are corrected with the calibration gizmo.
+ Carries the required Open Government Licence – Toronto attribution. Disable
+ with `CCTV_TORONTO_ENABLED=0`.
+
+ - Stop one retired bikeshare feed from reporting the whole layer as failed.
+ City feeds are fetched independently, but failure was recorded in a single
+ flag that only a successful *activation* cleared — and an already-loaded city
+ never activates again. A dead feed re-entering camera range therefore latched
+ LOAD FAILED permanently over a map still drawing every other city's stations.
+ Failure is now tracked per city: a city that fails beside others still
+ drawing marks the layer DEGRADED, polls that all fail over previously drawn
+ points read STALE without advancing freshness, and LOAD FAILED is reported
+ only when nothing is left to draw. A city that recovers clears its own
+ failure, a failure is dropped once its city leaves range or the camera rises
+ above the activation altitude, and late results from superseded requests are
+ ignored.
+
+ Repointed the three feeds whose operators had moved: Reddy Bikeshare (Buffalo)
+ to Social Bicycles, Tugo (Tucson) and Trinity Metro (Fort Worth) to PBSC.
+ Dropped CoGo (Columbus) and Broward B-cycle (Fort Lauderdale), whose systems
+ have wound down — CoGo's feed reports no stations and last moved a bike in
+ March 2025. The three repointed feeds were verified live.
+
+ - Add Bike Share Toronto (1,069 stations) to the bikeshare registry. The system
+ publishes the same PBSC GBFS v2 feeds as the Austin, Honolulu and Chattanooga
+ entries, so it needs no new plumbing; a registry test now holds every city's
+ feed URLs against the proxy host and path allowlists, so a city the proxy
+ would refuse fails the suite instead of rendering an empty layer.
+
- GBFS v3 station names use English translations when available, then the first
usable translation or short name. Empty or malformed names no longer appear as
`[object Object]` or interrupt station loading; legacy string names remain
diff --cc scripts/format-scope.json
index d910536a2,d956d09e8..56dd54da1
--- a/scripts/format-scope.json
+++ b/scripts/format-scope.json
@@@ -982,6 -1050,6 +1050,8 @@@
"src/costEndpointThrottle.test.mjs",
"src/sources/gbfsStations.test.mjs",
"scripts/qa-gbfs-names.mjs",
+ "scripts/generate-icons.mjs",
- "src/tooling/webAppIcons.test.mjs"
++ "src/tooling/webAppIcons.test.mjs",
+ "src/ui/flyToDataSource.js",
+ "src/ui/flyToDataSource.test.mjs"
]