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

helicopter_router.cpp « routing - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 633e3ebeab6611527e6c886f2c536f8ff5a9cb7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "helicopter_router.hpp"
#include "route.hpp"

#include "../base/timer.hpp"
#include "../base/macros.hpp"

namespace routing
{

void HelicopterRouter::SetFinalPoint(m2::PointD const & finalPt)
{
  m_finalPt = finalPt;
}

void HelicopterRouter::CalculateRoute(m2::PointD const & startingPt, ReadyCallback const & callback)
{
  m2::PointD points[] = { startingPt, m_finalPt };
  Route route(GetName(), points, points + ARRAY_SIZE(points), my::FormatCurrentTime());
  callback(route);
}

}