docs: describe project structure

This commit is contained in:
2026-06-07 12:18:24 +02:00
parent cc5a567335
commit caea56697c
5 changed files with 48 additions and 0 deletions

9
src/domain/photo.ts Normal file
View File

@@ -0,0 +1,9 @@
export interface Photo {
id: string;
fileName: string;
capturedAt: string | null;
latitude: number | null;
longitude: number | null;
thumbnailUrl: string | null;
}

7
src/domain/route.ts Normal file
View File

@@ -0,0 +1,7 @@
export interface RoutePoint {
photoId: string;
capturedAt: string;
latitude: number;
longitude: number;
}

View File

@@ -0,0 +1,6 @@
import type { RoutePoint } from "../../domain/route.js";
export function buildRoute(points: RoutePoint[]): RoutePoint[] {
return points.slice().sort((a, b) => a.capturedAt.localeCompare(b.capturedAt));
}

View File

@@ -0,0 +1,6 @@
import type { Photo } from "../../domain/photo.js";
export function listPhotos(): Photo[] {
return [];
}