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
test: check the route cap at exactly 200 turns
Sameh Khamis51d335b1db56
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 31fa3b502..a770fbd35 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -24,7 +24,8 @@the five borough cores load and `CCTV_NYC_MAX_SOURCES` changes the cap. The catalog-wide ceiling isunchanged; extra cameras share it round-robin with the other packs.-- Direction instruction limits report complete routes honestly and retain a final roundabout exit within the limit.+- Directions no longer shows a truncation notice for a route with exactly 200+ turns, and a roundabout at the 200th turn keeps its exit distance.- Weather records keep missing conditions unknown and refuse summaries without a measured temperature.diff --git a/docs/CURRENT-STATE.md b/docs/CURRENT-STATE.mdindex c98b2f667..1f794a5b5 100644--- a/docs/CURRENT-STATE.md+++ b/docs/CURRENT-STATE.md@@ -3327,10 +3327,6 @@ from fixtures (`providers/mapillary/coverageFixture.mjs`,photo flow. CI runs the fixture gate and `qa:panel-resize`against a production build served by `vite preview` with a dummy token.-Directions retains up to 200 turn instructions. Its truncation notice appears-only when another independent instruction is omitted; a complete route with-exactly 200 turns does not show the notice.-Directions is a keyless front end to the routing the voice agent alreadyuses. Its row chips are the whole interface: DRIVE / WALK / BIKE pick theprofile; SET A and SET B arm the next globe click (Escape or a second press@@ -3403,9 +3399,10 @@ rate limit from the routing service is reported as one instead of as "no routefound". `src/data/routeSteps.js` turns OSRM maneuver type / modifier / exit /road name into one plain-English sentence per decision, folding`exit roundabout` steps into the roundabout they leave, and caps one route at-200 maneuvers — a route past that cap is reported as cut off, in the row-summary and as the last line of the list, because the arrival step is among-the ones dropped.+200 maneuvers — a route with more is reported as cut off, in the row summary+and as the last line of the list, because the arrival step is among the ones+dropped. A route of exactly 200 is complete, and a roundabout exit after the+200th keeps folding into it.A step's card opens from its dot on the globe or from its line in the list, andthe list covers every step including departure and arrival, which have no dot.diff --git a/src/data/routeSteps.test.mjs b/src/data/routeSteps.test.mjsindex a3c8cf227..6bf74dd08 100644--- a/src/data/routeSteps.test.mjs+++ b/src/data/routeSteps.test.mjs@@ -206,9 +206,9 @@ test('the step list is capped, and the cap is reported rather than hidden', () =// would present a route that simply stops in the middle of a road.assert.equal(cut.truncated, true);const exact = normalizeOsrmSteps({- legs: [{ steps: many.slice(0, ROUTE_STEPS_MAX - 1) }],+ legs: [{ steps: many.slice(0, ROUTE_STEPS_MAX) }],});- assert.equal(exact.steps.length, ROUTE_STEPS_MAX - 1);+ assert.equal(exact.steps.length, ROUTE_STEPS_MAX);assert.equal(exact.truncated, false, 'a route that fits is not cut');});