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

openlr_model.cpp « openlr - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 17346ccea267fe861e4a9128ed2831f9611cf3a1 (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
25
26
27
#include "openlr/openlr_model.hpp"

#include "geometry/mercator.hpp"

using namespace std;

namespace openlr
{
// LinearSegment -----------------------------------------------------------------------------------
vector<m2::PointD> LinearSegment::GetMercatorPoints() const
{
  vector<m2::PointD> points;
  for (auto const & point : m_locationReference.m_points)
    points.push_back(MercatorBounds::FromLatLon(point.m_latLon));
  return points;
}

vector<LocationReferencePoint> const & LinearSegment::GetLRPs() const
{
  return m_locationReference.m_points;
}

vector<LocationReferencePoint> & LinearSegment::GetLRPs()
{
  return m_locationReference.m_points;
}
}  // namespace openlr