mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 05:13:58 +00:00
committed by
Konstantin Pastbin
parent
c9cbb64f12
commit
76ffc99abd
24
libs/routing/route_point.hpp
Normal file
24
libs/routing/route_point.hpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user