[tracks] Fixed ending points.

Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
This commit is contained in:
Viktor Govako
2025-07-22 23:49:28 -03:00
committed by Konstantin Pastbin
parent fda1da03c8
commit 64f50d4e49
11 changed files with 83 additions and 88 deletions

View File

@@ -1,20 +1,16 @@
#include "map/gps_tracker.hpp"
#include "map/framework.hpp"
#include "platform/platform.hpp"
#include "platform/settings.hpp"
#include "base/file_name_utils.hpp"
#include <string>
#include "defines.hpp"
using namespace std::chrono;
namespace
{
char const kEnabledKey[] = "GpsTrackingEnabled";
std::string_view constexpr kEnabledKey = "GpsTrackingEnabled";
inline std::string GetFilePath()
{
@@ -72,11 +68,6 @@ bool GpsTracker::IsEmpty() const
return m_track.IsEmpty();
}
size_t GpsTracker::GetTrackSize() const
{
return m_track.GetSize();
}
TrackStatistics GpsTracker::GetTrackStatistics() const
{
return m_track.GetTrackStatistics();
@@ -103,9 +94,3 @@ void GpsTracker::OnLocationUpdated(location::GpsInfo const & info)
return;
m_track.AddPoint(info);
}
void GpsTracker::ForEachTrackPoint(GpsTrackCallback const & callback) const
{
CHECK(callback != nullptr, ("Callback should be provided"));
m_track.ForEachPoint(callback);
}