changeset 127:07984965bbb7

Merge
author Lewin Bormann <lbo@spheniscida.de>
date Sat, 06 Mar 2021 14:49:00 +0100
parents 8572be3ea3f1 (current diff) 3798cd438c3c (diff)
children 0fff2024f54a
files assets/livemap.html
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/types.rs	Sat Feb 27 08:34:00 2021 +0100
+++ b/src/types.rs	Sat Mar 06 14:49:00 2021 +0100
@@ -17,6 +17,7 @@
 impl GeoPoint {
     fn to_gpx_waypoint(self) -> gpx::Waypoint {
         let mut wp = gpx::Waypoint::new(Point::new(self.long, self.lat));
+        wp.description = Some(format!("{}", self.id.unwrap_or(-1)));
         wp.elevation = self.ele;
         wp.speed = self.spd;
         wp.time = Some(self.time);