From aef67aab7a321fdfc2dbf3765686fb0f1765116c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Mon, 18 May 2026 07:38:55 +0200 Subject: [PATCH] Include waypoint note in GPX export and extractWaypoints type Co-Authored-By: Claude Sonnet 4.6 --- apps/planner/app/components/ExportButton.tsx | 1 + packages/gpx/src/waypoints.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/planner/app/components/ExportButton.tsx b/apps/planner/app/components/ExportButton.tsx index f58eb3b..ca93b23 100644 --- a/apps/planner/app/components/ExportButton.tsx +++ b/apps/planner/app/components/ExportButton.tsx @@ -25,6 +25,7 @@ function getWaypoints(yjs: YjsState) { lon: yMap.get("lon") as number, name: yMap.get("name") as string | undefined, isDayBreak: yMap.get("overnight") === true ? true : undefined, + note: yMap.get("note") as string | undefined, osmId: yMap.get("osmId") as number | undefined, poiTags: yMap.get("poiTags") as WaypointPoiTags | undefined, })); diff --git a/packages/gpx/src/waypoints.ts b/packages/gpx/src/waypoints.ts index 2283b88..5d2c5bc 100644 --- a/packages/gpx/src/waypoints.ts +++ b/packages/gpx/src/waypoints.ts @@ -5,7 +5,7 @@ import type { GpxData } from "./types.ts"; * Uses explicit elements if present, otherwise simplifies the * track using Douglas-Peucker to find significant turning points. */ -export function extractWaypoints(gpxData: GpxData): Array<{ lat: number; lon: number; name?: string; isDayBreak?: boolean }> { +export function extractWaypoints(gpxData: GpxData): Array<{ lat: number; lon: number; name?: string; isDayBreak?: boolean; note?: string }> { if (gpxData.waypoints.length > 0) return gpxData.waypoints; if (gpxData.tracks.length === 0) return [];