2026-10-03 10:03:22 +02:00
|
|
|
use crate::LngLat;
|
2026-09-18 09:03:51 +02:00
|
|
|
|
2026-10-03 18:03:13 +02:00
|
|
|
#[derive(Debug, Default, Clone)]
|
2026-09-23 19:53:39 +02:00
|
|
|
pub struct Trackpoint {
|
2026-09-18 09:03:51 +02:00
|
|
|
pub coordinates: LngLat,
|
|
|
|
|
pub ele: f64,
|
|
|
|
|
pub time: Option<i64>,
|
2026-09-20 13:58:27 +02:00
|
|
|
pub atemp: Option<i16>,
|
2026-09-18 09:03:51 +02:00
|
|
|
pub hr: Option<u16>,
|
|
|
|
|
pub cad: Option<u16>,
|
|
|
|
|
pub power: Option<u16>,
|
2026-10-04 19:14:41 +02:00
|
|
|
/// Code of the surface, see [`crate::TrackpointCategories`].
|
|
|
|
|
pub surface: Option<u8>,
|
|
|
|
|
/// Code of the highway, see [`crate::TrackpointCategories`].
|
|
|
|
|
pub highway: Option<u8>,
|
2026-10-04 19:19:53 +02:00
|
|
|
/// Code of the SAC hiking scale, see [`crate::TrackpointCategories`].
|
|
|
|
|
pub sac_scale: Option<u8>,
|
|
|
|
|
/// Code of the mountain biking scale, see [`crate::TrackpointCategories`].
|
|
|
|
|
pub mtb_scale: Option<u8>,
|
2026-09-18 09:03:51 +02:00
|
|
|
}
|