Your work is inspiring! I am also a cyclist in Cambridge as well, plus I am learning Rust "ferociously" hence I am very interested to understand your program (so I can learn to build one that suit my need!)
However, after updated the package dependencies, I realised that it may need some changes to make it compile:
error[E0609]: no field route on type Gpx
--> src/main.rs:409:17
|
409 | gpx.route.points.push(waypoint);
| ^^^^^ help: a field with a similar name exists: routes
error[E0609]: no field route on type Gpx
--> src/main.rs:415:52
|
415 | eprintln!("wrote {} (#{})", &filename, gpx.route.points.len());
| ^^^^^ help: a field with a similar name exists: routes
error[E0609]: no field route on type Gpx
--> src/main.rs:426:17
|
426 | gpx.route.points.push(point);
| ^^^^^ help: a field with a similar name exists: routes
error[E0609]: no field route on type Gpx
--> src/main.rs:428:13
|
428 | gpx.route.name = Some(format!("circle"));
| ^^^^^ help: a field with a similar name exists: routes
For more information about this error, try rustc --explain E0609.
error: could not compile scanner (bin "scanner") due to 4 previous errors
Hope I am not asking trivial questions, but I cannot get to fix it when I dug into the doc in gpx library.
Would you kindly suggest where I can start to look at?
Thank you and wish you have a good day!
Regards,
Angus
Some questions regarding to run the program locally
Dear diziet,
Your work is inspiring! I am also a cyclist in Cambridge as well, plus I am learning Rust "ferociously" hence I am very interested to understand your program (so I can learn to build one that suit my need!)
However, after updated the package dependencies, I realised that it may need some changes to make it compile:
error[E0609]: no field
route
on typeGpx
--> src/main.rs:409:17 | 409 | gpx.route.points.push(waypoint); | ^^^^^ help: a field with a similar name exists:routes
error[E0609]: no field
route
on typeGpx
--> src/main.rs:415:52 | 415 | eprintln!("wrote {} (#{})", &filename, gpx.route.points.len()); | ^^^^^ help: a field with a similar name exists:routes
error[E0609]: no field
route
on typeGpx
--> src/main.rs:426:17 | 426 | gpx.route.points.push(point); | ^^^^^ help: a field with a similar name exists:routes
error[E0609]: no field
route
on typeGpx
--> src/main.rs:428:13 | 428 | gpx.route.name = Some(format!("circle")); | ^^^^^ help: a field with a similar name exists:routes
For more information about this error, try
rustc --explain E0609
. error: could not compilescanner
(bin "scanner") due to 4 previous errorsHope I am not asking trivial questions, but I cannot get to fix it when I dug into the doc in gpx library. Would you kindly suggest where I can start to look at?
Thank you and wish you have a good day! Regards, Angus