improves gpx elevation calculation
This commit is contained in:
@@ -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" } })
|
||||
|
||||
Reference in New Issue
Block a user