improves gpx elevation calculation

This commit is contained in:
Christian Beutel
2025-04-25 13:18:29 +02:00
parent c6b17ad32e
commit 29ea15b36f
4 changed files with 42 additions and 19 deletions

View File

@@ -19,7 +19,7 @@ export async function PUT(event: RequestEvent) {
}
let parseResult: { trail: Trail, gpx: GPX };
try {
parseResult = (await gpx2trail(gpxData, data.get("name") as string | undefined));
parseResult = (await gpx2trail(gpxData, data.get("name") as string | undefined, event.fetch));
} catch (e: any) {
console.error(e)
throw new ClientResponseError({ status: 400, response: { message: "Invalid file" } })