2026-10-03 10:03:22 +02:00
|
|
|
use crate::LngLat;
|
2026-09-18 09:03:51 +02:00
|
|
|
|
2026-10-08 21:04:29 +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-10-07 17:58:17 +02:00
|
|
|
/// Whether the trackpoint is an anchor of the routing tool (a point the user can drag to
|
|
|
|
|
/// reroute the segment): the lowest map zoom level at which it is shown. The first and last
|
|
|
|
|
/// trackpoints of a segment are always anchors that are always shown (zoom 0).
|
|
|
|
|
pub anchor: Option<u8>,
|
2026-09-18 09:03:51 +02:00
|
|
|
}
|