blob: 921cddcc77e24923d72f3da8eee6563021ef1792 (
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
|
#pragma once
#include "openlr/openlr_model.hpp"
#include "geometry/mercator.hpp"
#include "geometry/point2d.hpp"
#include <cstdint>
namespace openlr
{
struct WayPoint final
{
explicit WayPoint(openlr::LocationReferencePoint const & lrp)
: m_point(MercatorBounds::FromLatLon(lrp.m_latLon))
, m_distanceToNextPointM(lrp.m_distanceToNextPoint)
, m_bearing(lrp.m_bearing)
, m_lfrcnp(lrp.m_functionalRoadClass)
{
}
m2::PointD m_point;
double m_distanceToNextPointM = 0.0;
uint8_t m_bearing = 0;
openlr::FunctionalRoadClass m_lfrcnp = openlr::FunctionalRoadClass::NotAValue;
};
} // namespace openlr
|