mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 22:53:43 +00:00
Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
This commit is contained in:
30
map/track_statistics.hpp
Normal file
30
map/track_statistics.hpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include "platform/location.hpp"
|
||||
|
||||
#include "kml/types.hpp"
|
||||
|
||||
struct TrackStatistics
|
||||
{
|
||||
using Points = kml::MultiGeometry::LineT;
|
||||
using Timestamps = kml::MultiGeometry::TimeT;
|
||||
|
||||
TrackStatistics();
|
||||
explicit TrackStatistics(kml::MultiGeometry const & geometry);
|
||||
|
||||
double m_length;
|
||||
double m_duration;
|
||||
double m_ascent;
|
||||
double m_descent;
|
||||
geometry::Altitude m_minElevation;
|
||||
geometry::Altitude m_maxElevation;
|
||||
|
||||
void AddGpsInfoPoint(location::GpsInfo const & point);
|
||||
private:
|
||||
void AddPoints(Points const & points);
|
||||
void AddTimestamps(Timestamps const & timestamps);
|
||||
bool HasNoPoints() const;
|
||||
|
||||
geometry::PointWithAltitude m_previousPoint;
|
||||
double m_previousTimestamp;
|
||||
};
|
||||
Reference in New Issue
Block a user