Include waypoint note in GPX export and extractWaypoints type

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-05-18 07:38:55 +02:00
parent 845301f0ae
commit aef67aab7a
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9
2 changed files with 2 additions and 1 deletions

View file

@ -5,7 +5,7 @@ import type { GpxData } from "./types.ts";
* Uses explicit <wpt> 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 [];