A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.
JavaScript 3d-globecesiumflight-trackinggeospatialgeospatial-intelligencegisosintphotogrammetrysatellite-trackingspatial-intelligencewebglworldview
Merge remote-tracking branch 'upstream/main' into fix/terrain-same-site-gate-on-686
Sunil5622497277768e9ffff7
diff --cc CHANGELOG.mdindex d44140a73,98d32365f..e099d83fb--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -1,15 -1,11 +1,21 @@@# Changelog+- Bound what a caller can grow through `/api/terrain/heights`. Every distinct+ 5-decimal point was a permanent in-memory entry, a permanent line in an+ uncapped `.gev-cache/terrain-heights.json`, and a live upstream call, with+ nothing limiting the rate. The point cache now holds at most 50,000 entries+ and evicts oldest-first, a cache file above+ 24 MB is not read back, and the route is limited to 90 requests/minute per+ client (270 global). Evicting a point costs one refetch, never a wrong+ answer, since terrain does not move. Ordinary use is unaffected: a full+ `test:track` run drives 10 requests, peaking at 8/min.++ - The tracked-aircraft descriptor now publishes `verticalRateMps`, on both the+ civil and military layers, so a consumer reading `getTrackedInfo()` no longer+ has to reach past it into the raw poll record for climb/descent. Reported,+ never derived: an aircraft that has not transmitted a rate reads as `null`+ rather than a level-flight `0`.+- Add nine Ontario transit feeds: TTC, MiWay, Hamilton HSR, Durham Region,YRT/Viva, Guelph, Burlington, Barrie and Kingston, each carrying its ownlicence quote and attribution. A feed can now name its own modes, so Toronto'sdiff --cc docs/CURRENT-STATE.mdindex c15e8dc0f,8cb7b6d17..ab80aa723--- a/docs/CURRENT-STATE.md+++ b/docs/CURRENT-STATE.md@@@ -1351,6 -1415,6 +1415,18 @@@ an empty dock. Explicit zero and caller## Terrain height cache bound++The `/api/terrain/heights` route refuses cross-site browser requests before++rate limiting, cache access or upstream work: a `Sec-Fetch-Site` other than++`same-origin`/`none` (an `<img>` on another page), or a foreign or opaque++`Origin`, gets `403`. The per-client limiter keys on the socket address, which++for such a request is the visitor's own browser, so without the gate any page++could spend the visitor's 90/min quota and leave the app's own lookups on++`429`. Unlike the cost-bearing routes, the terrain gate does not refuse++reverse-proxy forwarding headers: terrain is keyless and needed for rendering,++and a `403` there would send every chunk to the geoid fallback for an instance++served behind the documented reverse proxy. Same-origin app requests,++non-browser local callers and proxied same-origin requests keep working.++The terrain proxy parser rejects finite longitudes outside [-180, 180] andlatitudes outside [-90, 90] for every client before upstream resolution. Oneout-of-range point rejects the whole batch; inclusive WGS84 bounds remain valid.diff --cc scripts/format-scope.jsonindex c48514e6a,8bcc4c04d..f91c3a1ac--- a/scripts/format-scope.json+++ b/scripts/format-scope.json@@@ -1054,5 -1059,7 +1059,8 @@@"src/tooling/webAppIcons.test.mjs","src/ui/flyToDataSource.js","src/ui/flyToDataSource.test.mjs",+ "scripts/assemble-changelog.mjs",+ "src/tooling/changelogFragments.test.mjs",- "src/data/gbfsProxyRateLimit.test.mjs"++ "src/data/gbfsProxyRateLimit.test.mjs",+ "src/terrainHeightsBounds.test.mjs"]