Welcome to mirror list, hosted at ThFree Co, Russian Federation.

route_point.hpp « routing - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e652b044ef2e4c70d8fa3e66c3956ad35f81d885 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include "routing/road_point.hpp"

#include "std/cstdint.hpp"

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