Files
comaps/routing/route_point.hpp
Konstantin Pastbin e3e4a1985a 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
2025-05-08 21:10:51 +07:00

25 lines
593 B
C++

#pragma once
#include "routing/road_point.hpp"
#include <cstdint>
namespace routing
{
class RoutePoint final
{
public:
RoutePoint() = default;
RoutePoint(RoadPoint const & rp, double time) : m_roadPoint(rp), m_time(time) {}
RoutePoint(uint32_t featureId, uint32_t pointId, double time) : m_roadPoint(featureId,pointId), m_time(time) {}
RoadPoint const & GetRoadPoint() const { return m_roadPoint; }
double GetTime() const { return m_time; }
private:
RoadPoint m_roadPoint;
// time in seconds from start to arrival to point.
double m_time = 0.0;
};
} // namespace routing