feat: add geo points endpoint

This commit is contained in:
William Valentin
2026-02-04 16:44:57 -08:00
parent 5d2054637f
commit 4b2a4808b6
3 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
type GeoRow = {
id: string;
gps_lat: number | null;
gps_lon: number | null;
};
type GeoPoint = {
id: string;
gps_lat: number | null;
gps_lon: number | null;
};
export function shapeGeoRows(rows: GeoRow[]): GeoPoint[] {
return rows.map((row) => ({
id: row.id,
gps_lat: row.gps_lat,
gps_lon: row.gps_lon,
}));
}