adds proper total calculation for routing

This commit is contained in:
Christian Beutel
2025-03-29 14:27:55 +01:00
parent 60be2f65e4
commit 1f3aabda37
5 changed files with 56 additions and 15 deletions

View File

@@ -831,7 +831,7 @@
overwriteGPX = true;
const totals = route.features;
$formData.distance = totals.distance;
$formData.duration = totals.duration;
$formData.duration = totals.duration / 1000 / 60;
$formData.elevation_gain = totals.elevationGain;
$formData.elevation_loss = totals.elevationLoss;
$formData.expand!.gpx_data = route.toString();