From c22c710a804e92c0e23503eeab7dd6cad03a4b4e Mon Sep 17 00:00:00 2001 From: Christian Beutel <> Date: Tue, 11 Feb 2025 20:26:34 +0100 Subject: [PATCH] fixes distances and durations in info panel --- db/integrations/komoot/komoot.go | 4 ++-- web/src/routes/map/trail/[id]/+page.svelte | 20 +++++++++++++------- web/src/routes/map/trail/[id]/+page.ts | 5 +++-- 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/db/integrations/komoot/komoot.go b/db/integrations/komoot/komoot.go index d5f05979..671715e6 100644 --- a/db/integrations/komoot/komoot.go +++ b/db/integrations/komoot/komoot.go @@ -356,14 +356,14 @@ func generateTourGPX(detailedTour *DetailedKomootTour) (*filesystem.File, error) var points []*gpx.WptType for _, item := range detailedTour.Embedded.Coordinates.Items { - t := detailedTour.Date.Unix() + int64(item.T) + t := detailedTour.Date.Unix() + int64(item.T/1000) points = append(points, &gpx.WptType{Lat: item.Lat, Lon: item.Lng, Ele: item.Alt, Time: time.Unix(t, 0)}) } gpx := &gpx.GPX{ Version: "1.1", - Creator: "Strava GPX Exporter", + Creator: "komoot GPX Exporter", Trk: []*gpx.TrkType{ { Name: detailedTour.Name, diff --git a/web/src/routes/map/trail/[id]/+page.svelte b/web/src/routes/map/trail/[id]/+page.svelte index 4e1f9071..0bb8d1cb 100644 --- a/web/src/routes/map/trail/[id]/+page.svelte +++ b/web/src/routes/map/trail/[id]/+page.svelte @@ -1,25 +1,29 @@ - {$trail.name} | {$_("map")} | wanderer + {trail.name} | {$_("map")} | wanderer +