mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
feat(mapillary): dev-server provider — cached tiles, feature stream, sprites, optional Claude planner
Vite middleware for /api/mapillary: status (capabilities, never values), vector tiles cached in memory and on disk with the 12 MB z14 image layer stripped in transit, an NDJSON feature stream capped at 600 tiles, MIT sprite icons behind a grammar-guarded path, and a structured-output planner that only activates when ANTHROPIC_API_KEY is set server-side. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
1 parent
fa5710bcf2
commit
791e77fa33
3 files changed
+40
-7
No files matched your search
@@ -26,7 +26,7 @@ function sendJson(res, status, payload) {
|
||||
}
|
||||
|
||||
/** Parse an ISO date (or epoch ms) into epoch ms, or null when absent/invalid. */
|
||||
export function parseEpochMs(value) {
|
||||
function parseEpochMs(value) {
|
||||
if (value === null || value === undefined || value === '') return null;
|
||||
if (typeof value === 'number') return Number.isFinite(value) ? value : null;
|
||||
const parsed = Date.parse(String(value));
|
||||
|
||||
Reference in new issue
Block a user