fix: retain source credits and live vessel compatibility

This commit is contained in:
Redacted-Coder 2026-09-08 18:34:41 -04:00 committed by GitHub
parent 58aef7d617
commit 0d741449e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 1 deletions

View File

@ -55,7 +55,9 @@ const _scratchFocusScreen = new Cesium.Cartesian2();
const DEFAULT_API_URL = '/api/ais-live';
const DEFAULT_RENDER_ROWS = 12000;
const DEFAULT_ACTIVE_LABELS = 900;
const REFRESH_MS = 60000;
// The local server already receives a live WebSocket stream; poll its cached
// snapshot every 10 seconds instead of adding a full minute of client delay.
const REFRESH_MS = 10000;
/** Bounded wait for the first accepted vessel position in one enabled session. */
export const AIS_FIRST_CONNECT_GRACE_MS = 30000;
const AIS_FIRST_CONNECT_LABEL = 'awaiting first AIS position…';

View File

@ -120,6 +120,12 @@ export const DATA_CREDITS = [
'CCTV cameras & frames (California): Caltrans — ' +
'<a href="https://cwwp2.dot.ca.gov/" target="_blank" rel="noopener">cwwp2.dot.ca.gov</a>',
},
{ key: 'live-views-gdacs', html: 'Hazard reports: <a href="https://www.gdacs.org/" target="_blank" rel="noopener">GDACS</a>.' },
{ key: 'live-views-mbta', html: 'Boston transit positions: <a href="https://api-v3.mbta.com/" target="_blank" rel="noopener">MBTA V3 API</a>.' },
{
key: 'wsdot-cctv',
html: 'Washington traffic cameras: <a href="https://data.wsdot.wa.gov/" target="_blank" rel="noopener">Washington State Department of Transportation</a> and credited camera owners.',
},
{
key: 'tfl-cctv',
html:

View File

@ -14,6 +14,7 @@ import {
resolveOverpassPreflight,
} from '../../vite.config.js';
test('preflight checks memory, in-flight, then disk before consuming limiter quota', async () => {
const key = 'normalized query';
const fresh = { id: 'memory', status: 200, cachedAt: 900 };